logging-too-many-args / E1205#

Message emitted:

Too many arguments for logging format string

Description:

Used when a logging format string is given too many arguments.

Correct code:

import logging

try:
    function()
except Exception as e:
    logging.error('%s error occured: %s', type(e), e)
    raise

Problematic code:

import logging

try:
    function()
except Exception as e:
    logging.error('Error occured: %s', type(e), e)  # [logging-too-many-args]
    raise

Created by the logging checker.