Browse Source

修改v1日志配置

locky 8 tháng trước cách đây
mục cha
commit
a62ffbdc54
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      AnsjerPush/eur_config/eur_formal_settings.py

+ 2 - 3
AnsjerPush/eur_config/eur_formal_settings.py

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