From 0a95b7d30b46b56f4552de66dc67bca69ee389bc Mon Sep 17 00:00:00 2001 From: Henry He Date: Sat, 27 Apr 2024 12:11:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=85=8D=E7=BD=AE=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=96=87=E4=BB=B6=E5=8F=8A=E8=A1=8C=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/utils.py b/tools/utils.py index 248030e..7386fd8 100644 --- a/tools/utils.py +++ b/tools/utils.py @@ -9,8 +9,8 @@ def init_loging_config(): level = logging.INFO logging.basicConfig( level=level, - format="%(asctime)s %(name)s %(levelname)s %(message)s ", - datefmt='%Y-%m-%d %H:%M:%S' + format="%(asctime)s [%(threadName)s] %(name)s %(levelname)s (%(filename)s:%(lineno)d) - %(message)s", + datefmt='%Y-%m-%d %H:%M:%S' ) _logger = logging.getLogger("MediaCrawler") _logger.setLevel(level)