-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Follow up on #938 #1080
Comments
Do you have a simple script that reproduces the error? I can take a look at this in the next day or two. |
No, this error message is difficult to recreate (note that it's not an error in the sense that it doesn't affect the usability of LiveServer in a visible way, in particular it doesn't interrupt the server (and it shouldn't)). When interrupting and re-starting the server with many tabs open and re-triggering updates, we sometimes get the message triggered (I'd say the frequency is around 5-10%). The only other possible crumb of information is that I saw a message of yours here also in reply to someone asking about broken pipes where you were suggesting that simultaneous requests using I'm aware that this is very little information to actually debug this, this is why I'm asking if we could add an ignore_handler_error || @logmsgv 1 level "handle_connection handler error" exception=(e, stacktrace(catch_backtrace())) thanks |
even simpler would be to pass
users who wish to hide this can then just pass |
Actually I just discovered that messages like these can be filtered out externally using using LoggingExtras
with_logger(EarlyFilteredLogger(nt -> nt._module !== HTTP.Servers, global_logger())) do
# http listening logic + websocket update stuff
end this seems to work fine for my use case and given I can't really give an MWE which, understandably, doesn't help the debugging, I'll close this issue. |
Sorry I tried to comment on #938 but it looks like I wasn't able to re-open the issue. The problem still occurs for users of LiveServer.jl getting these confusing error messages about broken pipes which shouldn't actually concern them.
I tried silencing all logging by wrapping the main LiveServer loop (effectively happening around a
HTTP.listen!
) in aTestLogger
but that impacted the logging of other non-HTTP stuff that happens during the loop so had to roll it back.@logmsgv
handler error messages? e.g. via a keyword argument passed tolisten! -> listenloop -> handle_connection
?(happy to open a PR for (2) btw)
thanks in advance
The text was updated successfully, but these errors were encountered: