From d982636cd38c7d549f608580f416964e49146e21 Mon Sep 17 00:00:00 2001 From: Pentacene <48641773+Pentacene@users.noreply.github.com> Date: Thu, 4 Mar 2021 01:08:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=8F=8C=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, 2 insertions(+), 2 deletions(-) diff --git a/pagermaid/__init__.py b/pagermaid/__init__.py index a28def3..a56d7e3 100644 --- a/pagermaid/__init__.py +++ b/pagermaid/__init__.py @@ -6,7 +6,7 @@ from sys import version_info, platform from yaml import load, FullLoader from shutil import copyfile from redis import StrictRedis -from logging import getLogger, INFO, DEBUG, StreamHandler, basicConfig +from logging import getLogger, INFO, DEBUG, ERROR, StreamHandler, basicConfig from distutils2.util import strtobool from coloredlogs import ColoredFormatter from telethon import TelegramClient @@ -21,7 +21,7 @@ logging_format = "%(levelname)s [%(asctime)s] [%(name)s] %(message)s" logging_handler = StreamHandler() logging_handler.setFormatter(ColoredFormatter(logging_format)) root_logger = getLogger() -root_logger.setLevel(logging.ERROR) +root_logger.setLevel(ERROR) root_logger.addHandler(logging_handler) basicConfig(level=INFO) logs.setLevel(INFO)