소스 검색

修改error日志目录

locky 1 년 전
부모
커밋
ad78a04f96
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      AnsjerPush/cn_config/cn_formal_settings.py
  2. 1 1
      AnsjerPush/eur_config/eur_formal_settings.py
  3. 1 1
      AnsjerPush/us_config/formal_settings.py

+ 1 - 1
AnsjerPush/cn_config/cn_formal_settings.py

@@ -188,7 +188,7 @@ LOGGING = {
         'default': {
             'level': 'ERROR',
             'class': 'logging.handlers.RotatingFileHandler',
-            'filename': BASE_DIR + '/static/log/error.log',
+            'filename': BASE_DIR + '/static/log/error/error.log',
             'maxBytes': 1024 * 1024 * 5,  # 5 MB
             'backupCount': 5,
             'formatter': 'error_format',

+ 1 - 1
AnsjerPush/eur_config/eur_formal_settings.py

@@ -183,7 +183,7 @@ LOGGING = {
         'default': {
             'level': 'ERROR',
             'class': 'logging.handlers.RotatingFileHandler',
-            'filename': BASE_DIR + '/static/log/error.log',
+            'filename': BASE_DIR + '/static/log/error/error.log',
             'maxBytes': 1024 * 1024 * 5,  # 5 MB
             'backupCount': 5,
             'formatter': 'error_format',

+ 1 - 1
AnsjerPush/us_config/formal_settings.py

@@ -190,7 +190,7 @@ LOGGING = {
         'default': {
             'level': 'ERROR',
             'class': 'logging.handlers.RotatingFileHandler',
-            'filename': BASE_DIR + '/static/log/error.log',
+            'filename': BASE_DIR + '/static/log/error/error.log',
             'maxBytes': 1024 * 1024 * 5,  # 5 MB
             'backupCount': 5,
             'formatter': 'error_format',