diff --git a/flask_rest_jsonapi/decorators.py b/flask_rest_jsonapi/decorators.py index adab225..1ed7230 100644 --- a/flask_rest_jsonapi/decorators.py +++ b/flask_rest_jsonapi/decorators.py @@ -82,6 +82,7 @@ def wrapper(*args, **kwargs): except Exception as e: if current_app.config['DEBUG'] is True or current_app.config.get('PROPAGATE_EXCEPTIONS') is True: raise + current_app.log_exception(e) if 'sentry' in current_app.extensions: current_app.extensions['sentry'].captureException()