-
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
Normalize backfill logs/errors #13642
Conversation
d600bb2
to
b5c4f79
Compare
beacon-chain/sync/backfill/log.go
Outdated
|
||
import "github.com/sirupsen/logrus" | ||
|
||
var log = logrus.WithField("prefix", "backfill-sync") |
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.
Can we call this backfill
to match the package name?
@@ -12,7 +12,7 @@ var ( | |||
// This flag will be removed onced backfill is enabled by default. | |||
EnableExperimentalBackfill = &cli.BoolFlag{ | |||
Name: "enable-experimental-backfill", | |||
Usage: "Backfill is still experimental at this time." + | |||
Usage: "Backfill is still experimental at this time. " + |
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.
Why trailing whitespace?
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.
There is a second sentence
What type of PR is this?
Cleanup
What does this PR do? Why is it needed?
Makes backfill logs and errors consistent with the rest of the system:
log.go
file with a common prefixedlog
variableI also found some typos in flag descriptions