Sfoglia il codice sorgente

修改国内日志文件配置

linhaohong 7 mesi fa
parent
commit
9aa3ed1722
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      AnsjerPush/cn_config/cn_formal_settings.py

+ 2 - 2
AnsjerPush/cn_config/cn_formal_settings.py

@@ -203,7 +203,7 @@ LOGGING = {
             'level': 'INFO',
             'class': 'concurrent_log_handler.ConcurrentRotatingFileHandler',
             'filename': BASE_DIR + '/static/log/info/info.log',
-            'backupCount': 4,
+            'backupCount': 3,
             'maxBytes': 1024 * 1024 * 2 * 1024,  # 一天以内2GB 保存5天共10GB
             'formatter': 'standard',
             'encoding': 'utf-8',
@@ -212,7 +212,7 @@ LOGGING = {
             'level': 'INFO',
             'class': 'concurrent_log_handler.ConcurrentRotatingFileHandler',
             'filename': BASE_DIR + '/static/log/time/info.log',
-            'backupCount': 8,
+            'backupCount': 7,
             'maxBytes': 1024 * 1024 * 5 * 1024,  # 一天9GB 保存5天 共45GB
             'formatter': 'standard',
             'encoding': 'utf-8',