Browse Source

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

SongZihuan 3 years ago
parent
commit
1f0348f038
1 changed files with 1 additions and 1 deletions
  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)