From aa54491ae09f8ecd7e88a8a38a122b9ac34c6909 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Wed, 4 Jan 2023 10:21:16 -0700 Subject: [PATCH] Log rate-limiting errors Rate limiting is now reported to the console as an error message. Fixes #914 --- app/routes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/routes.py b/app/routes.py index 526331d..eb490e1 100644 --- a/app/routes.py +++ b/app/routes.py @@ -327,6 +327,7 @@ def search(): # Return 503 if temporarily blocked by captcha if has_captcha(str(response)): + app.logger.error('503 (CAPTCHA)') return render_template( 'error.html', blocked=True,