You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using '-vvvv' option of websocat, output rarely contains useful details. There are lots of odd messages, such as
[DEBUG websocat::readdebt] Fullfulling the debt of 135 bytes
[DEBUG websocat::trivial_peer] LiteralPeer debt
[DEBUG websocat::trivial_peer] LiteralPeer finished
[DEBUG websocat::my_copy] zero len
[DEBUG websocat::my_copy] read_done
[DEBUG websocat::my_copy] done
none of which confer actual information unless you are the websocat developer.
But when the process crashes or returns error to client, there are only extremely succinct log messages such as
websocat: WebSocketError: I/O failure
↑ the above message is displayed when websocat, launched with most verbose options (-vvvv), rejects a client in #208.
Other libraries, such as python-websockets default to logging a full stacktrace each time they reject client. Websocat is written in Rust, so I don't expect it, but it would be nice to at least log major decisions, happening inside the code.
The text was updated successfully, but these errors were encountered:
I'm not sure specifically backtrace can be helpful when debugging when the client is rejected.
INFO mode (i.e. one -v) is indented to produce logs based on "major decisious", such as Websocat startup or acceptance of the connection.
Unfortunately, current version of Websocat is based on rather crude and unmaintained library and new design for Websocat is far away (and logs tend to become cluttered there as well).
How log messages should look like per you idea? Can you provide imaginary transcript of what the logs should have looked like?
When using '-vvvv' option of websocat, output rarely contains useful details. There are lots of odd messages, such as
none of which confer actual information unless you are the websocat developer.
But when the process crashes or returns error to client, there are only extremely succinct log messages such as
↑ the above message is displayed when websocat, launched with most verbose options (
-vvvv
), rejects a client in #208.Other libraries, such as python-websockets default to logging a full stacktrace each time they reject client. Websocat is written in Rust, so I don't expect it, but it would be nice to at least log major decisions, happening inside the code.
The text was updated successfully, but these errors were encountered: