浏览代码

日志文件配置

locky 4 年之前
父节点
当前提交
ffbad8d1dc
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      AnsjerPush/formal_settings.py

+ 1 - 2
AnsjerPush/formal_settings.py

@@ -194,11 +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',
         },