-
Notifications
You must be signed in to change notification settings - Fork 645
docs: Add logging guide to contributing guidelines #1250
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
11467a5
docs: Add logging guide to contributing guidelines
thanethomson 31de44b
Apply suggestions from code review
thanethomson dd45799
Fix typo
thanethomson cfdc647
Expand on comment
thanethomson bdf6f4a
Add subsection on logging sensitive info
thanethomson 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
8000
This file contains hidden or 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.
Sometimes there is a log level ("noise") messages that contain those kinds of data dump, and happen to be useful if the "noise" level is carefully enabled.
Anyway, we don't have such a level in our logging infra, so the text as it is should be good. This was more like a random thought.
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.
Sounds valuable. Would this be similar to having a "trace" level? Or would "noise" messages be logged separately to the log messages? If they're logged separately, how does one link log messages to the logs to the noise messages?
Also, seems like a new type of feature we'd need to add, since our current logging framework doesn't support this.
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.
Yes, we don't support "noise" today (neither "warning", which seems like a miss to me TBH), so I take this convo as a discussion on possible improvements. My experience with "noise" in the past is that it was an super-verbose level (way more verbose than debug) were you dump all possible data to avoid having to attach a debugger (which is problematic with multithreaded or time sensitive processes).
You had to think twice before you enabled that level, just using it temporarily when debugging particular problems, and always restricted to one module only. Otherwise, boom!
Actually, a "noise" log level, combined with the idea I'm planning to work on as PI 10000 week (i described it in slack), would be super cool to have to say bye bye to dlv in most non-UT settings.