summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-07-23 11:58:11 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-07-23 11:58:11 -0700
commitc41e8531692c2f3973cee647bf2e1810fa917397 (patch)
tree408314e69041b3e01b563f8c9f850a85e204bef0 /python/fatcat_web
parent26a1763125a25e49903d667a048820213d90ed5b (diff)
downloadfatcat-c41e8531692c2f3973cee647bf2e1810fa917397.tar.gz
fatcat-c41e8531692c2f3973cee647bf2e1810fa917397.zip
web: always log upstream errors (may be redundant)
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/routes.py2
1 files changed, 2 insertions, 0 deletions
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)