Преглед на файлове

使用concurrent-log-handler

locky преди 7 месеца
родител
ревизия
09683d7e58
променени са 2 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 2 2
      AnsjerPush/test_config/test_settings.py
  2. 2 1
      requirements.txt

+ 2 - 2
AnsjerPush/test_config/test_settings.py

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

+ 2 - 1
requirements.txt

@@ -106,4 +106,5 @@ wcwidth==0.2.13
 zipp==3.18.1
 zope.event==5.0
 zope.interface==6.4
-esdk-obs-python==3.24.6
+esdk-obs-python==3.24.6
+concurrent-log-handler==0.9.25