Log exceptions to screen
This commit is contained in:
parent
dcc84e0df1
commit
eff80d684e
@ -24,7 +24,8 @@ class DebugStdoutFilter(logging.Filter):
|
|||||||
"""Filter debug messages sent to stdout"""
|
"""Filter debug messages sent to stdout"""
|
||||||
|
|
||||||
def filter(self, record: logging.LogRecord):
|
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
|
return True
|
||||||
if record.module in Config.DEBUG_MODULES:
|
if record.module in Config.DEBUG_MODULES:
|
||||||
return True
|
return True
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user