From a9eafcdb0b4259dc28c8b31d2e820e8dd5d7d6f4 Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Fri, 3 Nov 2023 10:25:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E6=97=A5=E5=BF=97=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E4=B8=AD=E6=98=BE=E7=A4=BA=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arknights_mower/utils/log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arknights_mower/utils/log.py b/arknights_mower/utils/log.py index f93346d95..c3be22e03 100644 --- a/arknights_mower/utils/log.py +++ b/arknights_mower/utils/log.py @@ -9,8 +9,8 @@ import colorlog from . import config -BASIC_FORMAT = '%(asctime)s - %(levelname)s - %(relativepath)s:%(lineno)d - %(funcName)s - %(message)s' -COLOR_FORMAT = '%(log_color)s%(asctime)s - %(levelname)s - %(relativepath)s:%(lineno)d - %(funcName)s - %(message)s' +BASIC_FORMAT = '%(asctime)s - %(levelname)s - %(pathname)s:%(lineno)d - %(funcName)s - %(message)s' +COLOR_FORMAT = '%(log_color)s%(asctime)s - %(levelname)s - %(pathname)s:%(lineno)d - %(funcName)s - %(message)s' DATE_FORMAT = None basic_formatter = logging.Formatter(BASIC_FORMAT, DATE_FORMAT) color_formatter = colorlog.ColoredFormatter(COLOR_FORMAT, DATE_FORMAT)