From 2525dd5dcb4e03bcd330e393d6bdc2c1108061a2 Mon Sep 17 00:00:00 2001 From: Pentacene <48641773+Pentacene@users.noreply.github.com> Date: Thu, 4 Mar 2021 01:03:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=A4=9A=E9=87=8Dlo?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagermaid/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pagermaid/__init__.py b/pagermaid/__init__.py index 20991a6..a28def3 100644 --- a/pagermaid/__init__.py +++ b/pagermaid/__init__.py @@ -20,7 +20,9 @@ logs = getLogger(__name__) logging_format = "%(levelname)s [%(asctime)s] [%(name)s] %(message)s" logging_handler = StreamHandler() logging_handler.setFormatter(ColoredFormatter(logging_format)) -logs.addHandler(logging_handler) +root_logger = getLogger() +root_logger.setLevel(logging.ERROR) +root_logger.addHandler(logging_handler) basicConfig(level=INFO) logs.setLevel(INFO)