Skip to content
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

Merged
merged 4 commits into from
Feb 22, 2024
Merged

Normalize backfill logs/errors #13642

merged 4 commits into from
Feb 22, 2024

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Feb 21, 2024

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 prefixed log variable
  • camel case field names
  • uppercase logs / lowercase errors
  • no period at the end of a log message (I'm pretty sure at least that's what we do for single sentences)

I also found some typos in flag descriptions

@rkapka rkapka added Ready For Review A pull request ready for code review Cleanup Code health! backfill labels Feb 21, 2024
@rkapka rkapka requested a review from a team as a code owner February 21, 2024 14:14
@rkapka rkapka enabled auto-merge February 21, 2024 14:14
nalepae
nalepae previously approved these changes Feb 21, 2024

import "github.com/sirupsen/logrus"

var log = logrus.WithField("prefix", "backfill-sync")
Copy link
Contributor

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. " +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why trailing whitespace?

Copy link
Contributor Author

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

@rkapka rkapka added this pull request to the merge queue Feb 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 21, 2024
@rkapka rkapka added this pull request to the merge queue Feb 22, 2024
Merged via the queue into develop with commit 7a9608e Feb 22, 2024
17 checks passed
@rkapka rkapka deleted the backfill-logs branch February 22, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backfill Cleanup Code health! Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants