I have a flask application wrapped with gunicorn. I would like that if one of my endpoints exits with an uncaught exception that somewhere the exception is logged. I don't want this going to the client however, just a server logfile.
Config Flask PROPAGATE_EXCEPTIONS to True. This will enable propagation of exceptions, and gunicorn will log a logfile.
http://flask.pocoo.org/docs/config/#builtin-configuration-values
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With