Derived from the tryceratops linter.
What it does#
Checks for excessive logging of exception objects.
Why is this bad?#
When logging exceptions via
logging.exception, the exception object
is logged automatically. Including the exception object in the log
message is redundant and can lead to excessive logging.