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

pass string format arguments as logging method parameters #24

Merged
merged 1 commit into from
Sep 9, 2023

Conversation

deepsource-autofix[bot]
Copy link
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
7 of 15 checks passed
@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