Explorar o código

修改v1日志配置

locky hai 8 meses
pai
achega
594de370f0
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      AnsjerPush/eur_config/eur_formal_settings.py

+ 3 - 3
AnsjerPush/eur_config/eur_formal_settings.py

@@ -212,10 +212,10 @@ LOGGING = {
         },
         'v1_push': {
             'level': 'INFO',
-            'class': 'logging.handlers.RotatingFileHandler',
+            'class': 'logging.handlers.TimedRotatingFileHandler',
             'filename': BASE_DIR + '/static/log/v1log/info.log',
-            'backupCount': 3,
-            'maxBytes': 1024 * 1024 * 10 * 1024,  # 10G
+            'backupCount': 30,
+            'when': 'D',
             'formatter': 'standard',
             'encoding': 'utf-8',
         },