Search code examples
pythonflaskgunicorn

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?


Solution

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

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