do not use format string with logging functions


ID: python-best-practices/logging-no-format

Language: Python

Severity: Notice

Category: Best Practices


Avoid using format string with the format method when logging information.

Non-Compliant Code Examples

import logging
import shlex"error {0} {1}".format(plop, plip))  # use instead"error %s", plop)

Compliant Code Examples

import logging"wfwef") jetbrains

Seamless integrations. Try Datadog Code Analysis