New Coder
New Coder

Reputation: 155

View incoming requests log in console with Gunicorn and Flask

It's possible to view incoming requests with flask after launching it e.g. flask image

Is there a way of viewing requests coming in live with gunicorn?

Upvotes: 3

Views: 2354

Answers (1)

Grey Li
Grey Li

Reputation: 12772

Run Gunicorn in the way below, you will see the incoming request log:

$ gunicorn --workers 3 your_module:your_app --access-logfile -

Upvotes: 9

Related Questions