-
-
Notifications
You must be signed in to change notification settings - Fork 394
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
chore(quinn-udp): tweak log levels #2048
base: main
Are you sure you want to change the base?
chore(quinn-udp): tweak log levels #2048
Conversation
861c63b
to
5bf9105
Compare
It is common to set up automated error reporting based on `ERROR` and potentially also `WARN` logs. Whilst GSO being unsupported is certainly something worthwhile logging, the `ERROR` log level seems a bit excessive and leads to unactionable errors reports. The system can still operate with `max_gso_segments == 1`. As such, this codepath "merely" indicates a state change in the system but not a fatal error. As such, logging this on INFO level seems more appropriate.
Logging AND returning errors is considered an anti-pattern because it leads to duplicate logs.
5bf9105
to
6e1760e
Compare
This makes sense to me, thanks! |
The CI failure seems like a fluke to me? Could you rerun those perhaps? |
This doesn't look like a fluke: error: unused import: `error`
--> quinn-udp\src\windows.rs:17:18
|
17 | log::{debug, error},
| ^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me. Thanks.
Ah didn't see that in the output, makes sense! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This PR is a proposal to remove the two
ERROR
logs that we currently have inquinn-udp
. Rationale is explained separately in each commit message.