GunicornFlask

Flask uncaught exceptions not logged by Gunicorn

warning
configurationUpdated Mar 24, 2026
How to detect:

When a Flask application runs under Gunicorn, uncaught exceptions in endpoints are not logged to Gunicorn's log files by default, preventing operators from diagnosing application failures.

Recommended action:

Set Flask's PROPAGATE_EXCEPTIONS configuration to True to enable exception propagation to Gunicorn, which will then log exceptions to its log file.