log auth errors from the v2 api

(will help with tracking down client problems)
This commit is contained in:
Leo Hemsted
2017-12-04 14:17:54 +00:00
parent 5c1ab3f0c4
commit e0c73256a6

View File

@@ -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)