Ver código fonte

Merge branch 'master' of http://192.168.136.99:3000/servers/ASJPush into test

chenshibin 4 anos atrás
pai
commit
64bec49ac3
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      AnsjerPush/formal_settings.py

+ 2 - 2
AnsjerPush/formal_settings.py

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