Explorar el Código

调试按小时分割info.log

zhangdongming hace 2 años
padre
commit
7fc77b0eea
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      AnsjerPush/cn_config/cn_formal_settings.py

+ 1 - 1
AnsjerPush/cn_config/cn_formal_settings.py

@@ -196,7 +196,7 @@ LOGGING = {
             'class': 'logging.handlers.TimedRotatingFileHandler',
             'filename': BASE_DIR + '/static/log/info/info.log',
             'backupCount': 7,
-            'when': 'D',
+            'when': 'H',
             'formatter': 'standard',
             'encoding': 'utf-8',
         },