-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Remove overly verbose data from custom formatter #8353
Conversation
0df81e5
to
8ec6657
Compare
Thanks for this also @cravend - would you mind updating the description with a couple of screenshots / small description on what this achieves? (hard to tell from the code) It also helpful for users to see exactly what got merged without diving into the code :) |
Thanks @cravend I'll review soon. I had initially thought of a different implementation rather than ignoring those attributes -- but I have to remember what it was (and it may not have worked). Let me try to recall what that was so I can review better. Thanks so much for taking this on! |
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 @cravend ! Approved!
Sorry this got off my review list for so long. This definitely makes logs cleaner and easier to read.
I might decide to add in the req url and /or id on the main message line at some point if we find that having the request url in a more serverful log is helpful.
Thanks again and I'll merge when CI completes.
Thanks again!
Sounds good! Thanks :-) Just so you know, the req url is in the main message already (but ID and hostname are not). |
Oh you’re right. Perfect! Thanks again! |
* refactor: remove overly verbose data from custom formatter * test: add tests for LogFormatter custom filter --------- Co-authored-by: David Thyresson <dthyresson@gmail.com>
Talked with @thedavidprice, we're not sure if this is breaking or not strictly but since we're taking away information that people could be relying in some edge case in production, we just don't feel comfortable releasing it in a minor. v6 is on the horizon, or at least not too far away, so we'll get this out then. Thanks @cravend! |
This PR modifies the
LogFormatter
to filter overly verbose items out of thecustom
object logged with each entry. Currently, the following items are filtered:These items are used elsewhere in the log formatter, and including them in the
custom
object is redundant.It also adds tests to ensure that these keys are removed.
After:
Before:
Closes #8318