Log rate-limiting errors

Rate limiting is now reported to the console as an error message.

Fixes #914
pull/927/head
Ben Busby 1 year ago
parent cec10e81d3
commit aa54491ae0
No known key found for this signature in database
GPG Key ID: B9B7231E01D924A1

@ -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,

Loading…
Cancel
Save