From 86193e0ef1a6c92af012baf1d814132a404dd870 Mon Sep 17 00:00:00 2001 From: LufsX Date: Mon, 21 Oct 2024 17:13:42 +0800 Subject: [PATCH] chore: rename log file --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 1a2671a..29e39d2 100644 --- a/app.py +++ b/app.py @@ -26,7 +26,7 @@ formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s") # 文件处理器 file_handler = RotatingFileHandler( - "score_upload.log", maxBytes=1_000_000, backupCount=5 + "running.log", mode="a", maxBytes=1_000_000, backupCount=5 ) file_handler.setLevel(logging.WARNING) file_handler.setFormatter(formatter)