From f1fdb32b56440c631df5f151076deabda215aca1 Mon Sep 17 00:00:00 2001 From: shmilylty Date: Thu, 8 Aug 2019 12:11:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BB=88=E7=AB=AF=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E4=B8=BAutf-8=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oneforall/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/oneforall/config.py b/oneforall/config.py index 38f3b4d..a19eade 100644 --- a/oneforall/config.py +++ b/oneforall/config.py @@ -192,6 +192,7 @@ logger.level(name='ALERT', no=30, color='', icon='⚠️') logger.level(name='ERROR', no=40, color='', icon='❌️') logger.level(name='FATAL', no=50, color='', icon='☠️') +sys.stderr.reconfigure(encoding='utf-8') logger.add(sys.stderr, level='INFOR', format=stdout_fmt, enqueue=True) logger.add(log_path, level='TRACE', format=logfile_fmt, enqueue=True, encoding='utf-8')