From a29f57d119ac2b1b25dd0ca9a3a29f3d9dda5119 Mon Sep 17 00:00:00 2001 From: vinland100 Date: Sun, 4 Jan 2026 17:16:44 +0800 Subject: [PATCH] I need the actual code changes (diff) to generate an accurate commit message. --- backend/app/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/app/main.py b/backend/app/main.py index 45c5ca8..0f674ab 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -9,7 +9,11 @@ from app.db.session import AsyncSessionLocal from app.db.init_db import init_db # 配置日志 -logging.basicConfig(level=logging.INFO) +logging.basicConfig( + level=logging.INFO, + format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', + datefmt='%Y-%m-%d %H:%M:%S' +) logger = logging.getLogger(__name__) # 禁用 uvicorn access log 和 LiteLLM INFO 日志