使用 Gunicorn 和 Flask 在控制台中查看传入请求日志
View incoming requests log in console with Gunicorn and Flask
可以在启动后使用 Flask 查看传入的请求,例如
flask image
有没有办法查看与 gunicorn 一起上线的请求?
运行 Gunicorn在下面的方式中,你会看到传入的请求日志:
$ gunicorn --workers 3 your_module:your_app --access-logfile -
可以在启动后使用 Flask 查看传入的请求,例如 flask image
有没有办法查看与 gunicorn 一起上线的请求?
运行 Gunicorn在下面的方式中,你会看到传入的请求日志:
$ gunicorn --workers 3 your_module:your_app --access-logfile -