From e0c73256a6456e6ae2081175d7b4c5970b3e3d0d Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Mon, 4 Dec 2017 14:17:54 +0000 Subject: [PATCH] log auth errors from the v2 api (will help with tracking down client problems) --- app/v2/errors.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/v2/errors.py b/app/v2/errors.py index cefdeef87..2cf4b878f 100644 --- a/app/v2/errors.py +++ b/app/v2/errors.py @@ -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)