diff --git a/gunicorn.conf.py b/gunicorn.conf.py index 64da5e6..383195e 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -9,7 +9,7 @@ debug = False reload = False loglevel = 'debug' pidfile = "logs/gunicorn.pid" -accesslog = "logs/access.log" # 每个接口调用会展示在access.log中 -errorlog = "logs/debug.log" # 未处理的报错会在debug.log日志中展示 +accesslog = "-" # 输出到容器标准输出,便于 docker logs 查看 +errorlog = "-" # 输出到容器标准错误,便于 docker logs 查看 timeout = 300 # 每个接口的超时时间 daemon = False # 容器内以前台方式运行,避免主进程退出