소스 검색

fix: 修复gunicorn日志文件路径错误

SongZihuan 3 년 전
부모
커밋
1f0348f038
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      gunicorn.conf.py

+ 1 - 1
gunicorn.conf.py

@@ -35,7 +35,7 @@ time_handle.setFormatter(log_formatter)
 gunicorn_access_logger = logging.getLogger("gunicorn.access")
 gunicorn_access_logger.setLevel(logging.INFO)
 
-accesslog = os.path.join(hblog_path, "/gunicorn_access.log")
+accesslog = os.path.join(hblog_path, "gunicorn_access.log")
 time_handle = logging.handlers.TimedRotatingFileHandler(accesslog, when="d", backupCount=10, encoding='utf-8')
 gunicorn_access_logger.addHandler(time_handle)
 time_handle.setFormatter(log_formatter)