Log Handled Exceptions

I’m currently building a web application with flask, and I have a @app.errorhandler(Exception) that catches and returns an error page for every exception. However, I would still like to log these exceptions with sentry. As of now, my setup doesn’t log these errors. Is it supposed to? and if it isn’t is there any other way to log these exceptions.

Changing your 500 error handler from @app.errorhandler(Exception) to @app.errorhandler(500) will fix the issue. We consider exceptions that are handled by type as suppressed.