Browse Source

修改欧洲服日志配置

locky 7 months ago
parent
commit
ede2f9b8e4
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Ansjer/eur_config/formal_settings.py

+ 3 - 3
Ansjer/eur_config/formal_settings.py

@@ -221,10 +221,10 @@ LOGGING = {
         },
         'default': {
             'level': 'ERROR',
-            'class': 'logging.handlers.RotatingFileHandler',
+            'class': 'concurrent_log_handler.ConcurrentRotatingFileHandler',
             'filename': BASE_DIR + '/static/log/error/error.log',
-            'maxBytes': 1024 * 1024 * 5,  # 5 MB
-            'backupCount': 5,
+            'backupCount': 3,
+            'maxBytes': 1024 * 1024 * 2 * 100,  # 200M
             'formatter': 'error_format',
         },
         'console': {