mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-08 22:13:12 -04:00
log auth errors from the v2 api
(will help with tracking down client problems)
This commit is contained in:
@@ -79,6 +79,7 @@ def register_errors(blueprint):
|
|||||||
|
|
||||||
@blueprint.errorhandler(AuthError)
|
@blueprint.errorhandler(AuthError)
|
||||||
def auth_error(error):
|
def auth_error(error):
|
||||||
|
current_app.logger.info('API AuthError: {}'.format(error))
|
||||||
return jsonify(error.to_dict_v2()), error.code
|
return jsonify(error.to_dict_v2()), error.code
|
||||||
|
|
||||||
@blueprint.errorhandler(Exception)
|
@blueprint.errorhandler(Exception)
|
||||||
|
|||||||
Reference in New Issue
Block a user