-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
[non-breaking] deps(udp): make tracing optional and add optional log #1923
Conversation
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.
LGTM!
This commit makes the `tracing` dependency in `quinn-udp` optional, but enabled by default. In additional it adds optional logging via the `log` crate, enabled through the `direct-log` feature. `tracing` takes precedence over `native-log`.
67b4325
to
46944db
Compare
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.
LGTM, thanks!
Previously `quinn*` would provide the `log` feature to log events via `log` if no `tracing` subscriber exists. Later quinn-rs#1923 allowed `quinn-udp` to log via `log` directly, making `tracing` an optional dependency. For that, it introduced the `direct-log` feature, a workaround name in order to not introduce a breaking change. This commit cleans up the above, renaming the `log` feature to `tracing-log` and the `direct-log` to `log`. This is a breaking change and thus `quinn-udp` is bumped to `v0.6.0`. See quinn-rs#1921 for the full history.
Sure, want to submit a PR to bump the version number? |
@djc already done in this pull request: https://github.com/quinn-rs/quinn/blob/main/quinn-udp/Cargo.toml#L3 |
Ah sorry, was looking at an outdated checkout. I'll just publish it now then! |
|
🙏 thanks again for the quick help @djc! |
quinn-rs/quinn#1923 made the `tracing` dependency optional. In addition, when `direct-log` is enabled, it allows using `log` instead of `tracing` for logging.
* deps(quinn-udp): move to workspace dependency * deps(quinn-udp): bump to latest version * deps(quinn-udp): enable direct-log feature quinn-rs/quinn#1923 made the `tracing` dependency optional. In addition, when `direct-log` is enabled, it allows using `log` instead of `tracing` for logging.
* deps(quinn-udp): move to workspace dependency * deps(quinn-udp): bump to latest version * deps(quinn-udp): enable direct-log feature quinn-rs/quinn#1923 made the `tracing` dependency optional. In addition, when `direct-log` is enabled, it allows using `log` instead of `tracing` for logging.
* deps(quinn-udp): move to workspace dependency * deps(quinn-udp): bump to latest version * deps(quinn-udp): enable direct-log feature quinn-rs/quinn#1923 made the `tracing` dependency optional. In addition, when `direct-log` is enabled, it allows using `log` instead of `tracing` for logging.
Alternative to #1921.
Implementation of @Ralith suggestion in #1921 (comment).
Not breaking
quinn-udp
. I.e. only bumping patch version tov0.5.3
.