-
Notifications
You must be signed in to change notification settings - Fork 921
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
Log with field error instead of err #7998
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.
Thanks for this PR! The log consistency is appreciated!
With Logrus, WithError is the preferred way to handle errors. It's essentially an alias for the code you've written, except for the last message which isn't an "error" type.
Oh but I didn't write any of it just batch changed "err" for "error". Sure, your changes are perfect! |
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
The base branch was changed.
What type of PR is this?
Small enhancement
What does this PR do? Why is it needed?
It changes the field logged in some initial sync warnings from "err" to "error", this reduces slightly the footprint on the journal and simplifies a bit log-parsing scripts.
Which issues(s) does this PR fix?
None filed.