From 4877e955d03d339c695a280ed6f959e4bf3e900b Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Wed, 18 Jul 2018 00:04:40 +0200 Subject: [PATCH] More logging --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 54d15c4..c2bf01c 100644 --- a/app.py +++ b/app.py @@ -404,7 +404,7 @@ def is_api_request(): @app.errorhandler(ValueError) def handle_value_error(error): - logger.error(f"caught value error: {error!r}") + logger.error(f"caught value error: {error!r}, {error.__traceback__}") response = flask_jsonify(message=error.args[0]) response.status_code = 400 return response @@ -412,7 +412,7 @@ def handle_value_error(error): @app.errorhandler(Error) def handle_activitypub_error(error): - logger.error(f"caught activitypub error {error!r}") + logger.error(f"caught activitypub error {error!r}, {error.__traceback__}") response = flask_jsonify(error.to_dict()) response.status_code = error.status_code return response