-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We should let Python's logging module lazily interpolate the string. This is generally recommended as the way to write log messages (over eagerly formatting with either .format() or f-strings). This has two benefits: 1) The 'processing' required to calculate the value of the variable being interpolated doesn't need to happen unless the log message is actually being emitted. 2) Sentry/etc can group together error log lines based on the base unformatted message. If we eagerly interpolate, each log message will be unique and so they don't get grouped together.
- Loading branch information
1 parent
e8f972b
commit 0ba200a
Showing
3 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters