浏览代码

修改欧洲日志配置

locky 9 月之前
父节点
当前提交
324aedb7cb
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Ansjer/eur_config/formal_settings.py

+ 3 - 3
Ansjer/eur_config/formal_settings.py

@@ -254,8 +254,8 @@ LOGGING = {
             'level': 'INFO',
             'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/success_code/success_code.log',
-            'backupCount': 10,
-            'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
+            'backupCount': 3,
+            'maxBytes': 1024 * 1024 * 20 * 1024,  # 20G
             'formatter': 'standard',
             'encoding': 'utf-8',
         },
@@ -273,7 +273,7 @@ LOGGING = {
             'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/apple_pay/apple_pay.log',
             'backupCount': 3,
-            'maxBytes': 1024 * 1024 * 20 * 1024,  # 20G
+            'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
             'formatter': 'standard',
             'encoding': 'utf-8',
         },