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

Commits on Sep 9, 2023

  1. refactor: pass string format arguments as logging method parameters

    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[bot] authored Sep 9, 2023
    Configuration menu
    Copy the full SHA
    076d4c1 View commit details
    Browse the repository at this point in the history