Skip to content

chore: make logger.Logger methods end in f#3878

Merged
DrJosh9000 merged 1 commit intomainfrom
chore-logger-methods-with-f
May 4, 2026
Merged

chore: make logger.Logger methods end in f#3878
DrJosh9000 merged 1 commit intomainfrom
chore-logger-methods-with-f

Conversation

@DrJosh9000
Copy link
Copy Markdown
Contributor

Description

It's easy to forget that the first arg to Debug/Info/Warn/Error/Fatal/Notice is a format arg, because it didn't use the convention of putting an f on the end of the method name.

Context

#3877

Changes

  • Change the method names
  • Add a compatibility wrapper for signature

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go tool gofumpt -extra -w .)

Disclosures / Credits

Search and replace - 10 minute job.

@DrJosh9000 DrJosh9000 requested review from a team as code owners May 3, 2026 23:49
@DrJosh9000 DrJosh9000 enabled auto-merge May 3, 2026 23:52
Copy link
Copy Markdown
Member

@pda pda left a comment

Choose a reason for hiding this comment

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

Good idea 👍🏼

@DrJosh9000 DrJosh9000 merged commit 57463a1 into main May 4, 2026
3 checks passed
@DrJosh9000 DrJosh9000 deleted the chore-logger-methods-with-f branch May 4, 2026 00:33
@buildkate buildkate mentioned this pull request May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants