我想记录有关gunicorn启动工作人员和应用程序未解决错误的一些信息,因此我将gunicorn.log
添加到我的gunicorn命令。
当我在生产前测试它时效果很好。 [2017-12-05 11:07:04 +0800] [6468] [INFO] Starting gunicorn 19.6.0
[2017-12-05 11:07:04 +0800] [6468] [INFO] Listening at: http://0.0.0.0:9999 (6468)
[2017-12-05 11:07:04 +0800] [6468] [INFO] Using worker: gthread
[2017-12-05 11:07:04 +0800] [6471] [INFO] Booting worker with pid: 6471
[2017-12-05 11:07:10 +0800] [6468] [INFO] Handling signal: int
[2017-12-05 11:07:11 +0800] [6471] [INFO] Worker exiting (pid: 6471)
[2017-12-05 11:07:11 +0800] [6468] [INFO] Shutting down: Master
[2017-12-05 11:07:19 +0800] [6484] [INFO] Starting gunicorn 19.6.0
[2017-12-05 11:07:19 +0800] [6484] [INFO] Listening at: http://0.0.0.0:9999 (6484)
[2017-12-05 11:07:19 +0800] [6484] [INFO] Using worker: gthread
[2017-12-05 11:07:19 +0800] [6487] [INFO] Booting worker with pid: 6487
[2017-12-05 11:07:24 +0800] [6484] [INFO] Handling signal: int
[2017-12-05 11:07:24 +0800] [6487] [INFO] Worker exiting (pid: 6487)
[2017-12-05 11:07:25 +0800] [6484] [INFO] Shutting down: Master
中的某些行显示如下:
gunicorn.log
我把它用于产品服务器后。起初,某些日志实际上出现在gunicorn.log
中。但第二天,我发现ll
完全是空的。我确保没有人可以访问此日志文件,MSClient
显示00:00的最新更新时间。我无法弄清楚会做什么。有人知道吗?