Skip to content

Avoid f-strings for glog inputs#381

Merged
jschanck merged 1 commit into
mozilla:mainfrom
jschanck:no-f-strings-in-log-messages
Feb 18, 2026
Merged

Avoid f-strings for glog inputs#381
jschanck merged 1 commit into
mozilla:mainfrom
jschanck:no-f-strings-in-log-messages

Conversation

@jschanck
Copy link
Copy Markdown
Collaborator

Pre-formatting the input to glog.debug() (etc) with an f-string runs the risk that the final argument contains a % character, which causes an error about a missing argument to be logged.

@jschanck jschanck requested a review from mozkeeler February 18, 2026 18:30
@jschanck jschanck merged commit 6d17ab4 into mozilla:main Feb 18, 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