diff --git a/app/log.py b/app/log.py index ab61170..bbb607c 100644 --- a/app/log.py +++ b/app/log.py @@ -24,7 +24,8 @@ class DebugStdoutFilter(logging.Filter): """Filter debug messages sent to stdout""" def filter(self, record: logging.LogRecord): - if record.levelno != logging.DEBUG: + # Exceptions are logged at ERROR level + if record.levelno in [logging.DEBUG, logging.ERROR]: return True if record.module in Config.DEBUG_MODULES: return True