fix nicelogger for Python 3.12

This commit is contained in:
lilydjwg 2024-04-28 17:14:57 +08:00
parent fdac4af358
commit 2a63ddef7a

View file

@ -71,6 +71,7 @@ class TornadoLogFormatter(logging.Formatter):
'filename', 'exc_info', 'exc_text', 'created', 'funcName',
'processName', 'process', 'msecs', 'relativeCreated', 'thread',
'threadName', 'name', 'levelno', 'msg', 'pathname', 'stack_info',
'taskName',
})
if record.exc_info: