From c41e8531692c2f3973cee647bf2e1810fa917397 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 23 Jul 2021 11:58:11 -0700 Subject: web: always log upstream errors (may be redundant) --- python/fatcat_web/routes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py index 144922a8..ab060c45 100644 --- a/python/fatcat_web/routes.py +++ b/python/fatcat_web/routes.py @@ -1128,12 +1128,14 @@ def page_edit_conflict(e): @app.errorhandler(500) def page_server_error(e): + app.log.error(e) return render_template('500.html'), 500 @app.errorhandler(502) @app.errorhandler(503) @app.errorhandler(504) def page_server_down(e): + app.log.error(e) return render_template('503.html'), 503 @app.errorhandler(ApiException) -- cgit v1.2.3