biocommons / biocommons.example

Template for new biocommons packages, and source of configuration for periodic updates to derived packages
1 stars 1 forks source link

pass string format arguments as logging method parameters #24

Closed deepsource-autofix[bot] closed 10 months ago

deepsource-autofix[bot] commented 10 months ago

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.