allow debug messages

This commit is contained in:
JerryXiao 2019-04-11 15:02:50 +08:00
parent d0427b3941
commit b1b6c3f0b0
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -267,7 +267,7 @@ def configure_logger(logger, format='%(asctime)s - %(name)-18s - %(levelname)s -
record.msg = 'Exception caught.\nPrinting stack traceback\n' + record.msg
return super().format(record)
logger.setLevel(level)
logger.setLevel(logging.DEBUG)
formatter = ExceptionFormatter(fmt=format)
logging.addLevelName(49, 'Exception')
# create file handler