-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat(lib): Move from log
to tracing
in a backwards-compatible way
#2204
Merged
seanmonstar
merged 7 commits into
hyperium:master
from
davidbarsky:davidbarsky/add-tracing-to-hyper
Jul 7, 2020
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c402eb7
feat(lib): Move from `log` to `tracing` in a backwards-compatible way
01a8cff
how? do? cargo? features? work?
dd99479
Add `log` feature to `tracing` to not break existing users
davidbarsky 0c1b134
i don't really understand how cargo features work
davidbarsky f64b768
address review comments
davidbarsky aedf5bb
address eliza's comment
davidbarsky ae1b445
phew, maybe one more time?
davidbarsky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It would be good to expose the
log
feature optionally (though it should default to on so we don't break existing code that expectslog
records emitted by Hyper), so thattracing
users who don't needlog
can disable it. Otherwise, depending on Hyper will always enable thelog
feature, even when users don't need it.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.
hmm, solid point. will fix.
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.
Something to consider, though, is that if the logging enabled becomes an optional feature, then those who have
default-features = false
will have the logs disabled when they upgrade.(I find cargo's default-features to be annoying in this regard, but what we gonna do.)
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.
Darn, that's an annoying thing. Are you okay with breaking those people in a minor release? Or more generally, how should this be handled?