屏蔽第三方库的debug日志

This commit is contained in:
wangjie 2023-11-15 12:31:08 +08:00
parent 008a58c32f
commit bbefb620ec
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ import colorlog
from common.settings import LOG_DEBUG, LOG_CONSOLE
from configs.dir_path_config import LOGS_DIR
logging.getLogger('faker').setLevel(logging.ERROR)
logging.getLogger('urllib3').setLevel(logging.ERROR)
class Logger:
"""用于全局记录log"""