From 27fa035bea18684327cae779fd61a9c95c5d66bf Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 25 Jul 2023 11:19:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=BE=E7=BD=AE=E5=8D=95=E4=B8=AA?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=97=A5=E5=BF=97=E5=A4=A7=E5=B0=8F=E4=B8=8A?= =?UTF-8?q?=E9=99=90=E4=B8=BA2m?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/settings.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/settings.py b/server/settings.py index 5c225d6b..ab3de955 100755 --- a/server/settings.py +++ b/server/settings.py @@ -338,8 +338,8 @@ LOGGING = { 'level': 'INFO', 'class': 'logging.handlers.RotatingFileHandler', 'filename': os.path.join(LOG_PATH, 'all-{}.log'.format(datetime.now().strftime('%Y-%m-%d'))), - 'maxBytes': 1024 * 1024 * 5, # 文件大小 - 'backupCount': 5, # 备份数 + 'maxBytes': 1024 * 1024 * 2, # 文件大小 + 'backupCount': 10, # 备份数 'formatter': 'standard', # 输出格式 'encoding': 'utf-8', # 设置默认编码,否则打印出来汉字乱码 }, @@ -348,8 +348,8 @@ LOGGING = { 'level': 'ERROR', 'class': 'logging.handlers.RotatingFileHandler', 'filename': os.path.join(LOG_PATH, 'error-{}.log'.format(datetime.now().strftime('%Y-%m-%d'))), - 'maxBytes': 1024 * 1024 * 5, # 文件大小 - 'backupCount': 5, # 备份数 + 'maxBytes': 1024 * 1024 * 2, # 文件大小 + 'backupCount': 10, # 备份数 'formatter': 'standard', # 输出格式 'encoding': 'utf-8', # 设置默认编码 }, @@ -365,8 +365,8 @@ LOGGING = { 'level': 'INFO', 'class': 'logging.handlers.RotatingFileHandler', 'filename': os.path.join(LOG_PATH, 'info-{}.log'.format(datetime.now().strftime('%Y-%m-%d'))), - 'maxBytes': 1024 * 1024 * 5, - 'backupCount': 5, + 'maxBytes': 1024 * 1024 * 2, + 'backupCount': 10, 'formatter': 'standard', 'encoding': 'utf-8', # 设置默认编码 },