Skip to content

pass string format arguments as logging method parameters#24

Merged
reece merged 1 commit into
mainfrom
deepsource-autofix-f929afe4
Sep 9, 2023
Merged

pass string format arguments as logging method parameters#24
reece merged 1 commit into
mainfrom
deepsource-autofix-f929afe4

Conversation

@deepsource-autofix

Copy link
Copy Markdown
Contributor

The logging statement has the call of the form logging.(format_string % (format_args...)). For such calls, it is recommended to leave string interpolation to the logging method itself and be written as logging.(format_string, format_args...) so that the program may avoid incurring the cost of the interpolation in those cases in which no message will be logged. For more details, see PEP 282.

The logging statement has the call of the form `logging.(format_string % (format_args...))`. For such calls, it is recommended to leave string interpolation to the logging method itself and be written as `logging.(format_string, format_args...)` so that the program may avoid incurring the cost of the interpolation in those cases in which no message will be logged. For more details, see [PEP 282](http://www.python.org/dev/peps/pep-0282).
@deepsource-autofix
deepsource-autofix Bot requested a review from reece as a code owner September 9, 2023 04:36
@reece
reece merged commit ff073ac into main Sep 9, 2023
@reece
reece deleted the deepsource-autofix-f929afe4 branch September 9, 2023 04:41
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.

1 participant