Derived from the tryceratops linter.
What it does#
Checks for uses of
logging.error instead of
logging an exception.
Why is this bad?#
logging.exception logs the exception and the traceback, while
logging.error only logs the exception. The former is more appropriate
when logging an exception, as the traceback is often useful for debugging.