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
1 changed files with 1 additions and 1 deletions

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