locky 7 месяцев назад
Родитель
Сommit
e9bfc3fe71
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      AnsjerPush/eur_config/eur_formal_settings.py

+ 2 - 1
AnsjerPush/eur_config/eur_formal_settings.py

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