mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05: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)
|
||||
def auth_error(error):
|
||||
current_app.logger.info('API AuthError: {}'.format(error))
|
||||
return jsonify(error.to_dict_v2()), error.code
|
||||
|
||||
@blueprint.errorhandler(Exception)
|
||||
|
||||
Reference in New Issue
Block a user