-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
switch tokio-util from log to tracing #4539
Conversation
...I had forgotten |
@hawkw I think I need to it to v0.1.25 to pass ci? that should be semver compatible with 0.1.31 (what we use in our repo) right? |
yeah should be fine |
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!
my one remaining concern is "what happens to users who expect log
to work?" --- perhaps we should enable the tracing/log
feature by default, but i don't love that either...
@@ -278,7 +278,7 @@ where | |||
|
|||
while !pinned.state.borrow_mut().buffer.is_empty() { | |||
let WriteFrame { buffer } = pinned.state.borrow_mut(); | |||
trace!("writing; remaining={}", buffer.len()); | |||
trace!(remaining = buffer.len(), "writing;"); |
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.
<3
I don't love enabling brings up a good question: is what log backend you use protected by semver? I am inclined to say no, as there is no actual clean way to track this, but a reasonable answer might be " one other option is to default to |
adding an optional feature was my plan for |
I'm okay with doing this. |
@Darksonn as ci is passing, can this be merged? |
seems good to me! |
Motivation
I am trying to remove any usage of
log
in our dep tree, so I can turn off thetracing-log
feature, and I noticedtokio-util
still usedlog
, so I am trying to change it totracing
!Solution
There were only a few callsites using
log
intokio-util
, so I figured switching them to tracing, like the rest of the tokio ecosystem would be fine!