Skip to content

Commit 2bd7c4a

Browse files
committed
revert: 撤销 jm_config.py 中的 Formatter defaults 参数,不兼容 3.9
1 parent 10bfae9 commit 2bd7c4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/jmcomic/jm_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def setup_default_jm_logger():
1818
if not jm_logger.handlers:
1919
import sys
2020
handler = logging.StreamHandler(sys.stdout)
21-
formatter = logging.Formatter('[%(asctime)s] [%(threadName)s]:【%(topic)s】%(message)s', datefmt='%Y-%m-%d %H:%M:%S', defaults={'topic': ''})
21+
formatter = logging.Formatter('[%(asctime)s] [%(threadName)s]:【%(topic)s】%(message)s', datefmt='%Y-%m-%d %H:%M:%S')
2222
handler.setFormatter(formatter)
2323
jm_logger.addHandler(handler)
2424
jm_logger.setLevel(logging.INFO)

0 commit comments

Comments
 (0)