Browse Source

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

chenshibin 4 years ago
parent
commit
64bec49ac3
1 changed files with 2 additions and 2 deletions
  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',
         },