Pattern: Too few logging arguments
Issue: -
Calls to logging that do not match formats against args may lead to confusion as code will not work as expected. Extra arguments will not be shown and missing arguments will raise IndexError
. Update code so that formats and args are in sync.
Example of incorrect code:
logging.warn('%s, %s', 1)
Example of correct code:
logging.warn('%s, %s', 1, 2)