We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed73520 commit a4bac73Copy full SHA for a4bac73
flask_rest_jsonapi/decorators.py
@@ -83,6 +83,10 @@ def wrapper(*args, **kwargs):
83
if 'sentry' in current_app.extensions:
84
current_app.extensions['sentry'].captureException()
85
86
+ if hasattr(current_app, 'logger'):
87
+ # todo remove when put sentry to app extensions
88
+ current_app.logger.exception('an error occurred in JSONAPI: ')
89
+
90
exc = JsonApiException(getattr(e,
91
'detail',
92
current_app.config.get('GLOBAL_ERROR_MESSAGE') or str(e)),
0 commit comments