From 0b76602c84ac3e37b6b0f32b734b2a2a38af07fa Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 31 Mar 2025 15:08:23 +0800 Subject: [PATCH] =?UTF-8?q?change:=20base=20=E6=94=B9=E5=8F=98log=20backup?= =?UTF-8?q?count=E4=B8=BA30?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/settings.py b/server/settings.py index 14775702..cc9f632b 100755 --- a/server/settings.py +++ b/server/settings.py @@ -312,7 +312,7 @@ LOGGING = { 'when': 'midnight', # 每天午夜滚动 'interval': 1, 'maxBytes': 1024 * 1024 * 2, # 文件大小 - 'backupCount': 10, # 备份数 + 'backupCount': 30, # 备份数 'formatter': 'standard', # 输出格式 'encoding': 'utf-8', # 设置默认编码,否则打印出来汉字乱码 }, @@ -324,7 +324,7 @@ LOGGING = { 'when': 'midnight', 'interval': 1, 'maxBytes': 1024 * 1024 * 2, # 文件大小 - 'backupCount': 10, # 备份数 + 'backupCount': 30, # 备份数 'formatter': 'standard', # 输出格式 'encoding': 'utf-8', # 设置默认编码 }, @@ -343,7 +343,7 @@ LOGGING = { 'when': 'midnight', 'interval': 1, 'maxBytes': 1024 * 1024 * 2, - 'backupCount': 10, + 'backupCount': 30, 'formatter': 'standard', 'encoding': 'utf-8', # 设置默认编码 },