Log rate-limiting errors

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

Fixes #914
main
Ben Busby 2023-01-04 10:21:16 -07:00
parent cec10e81d3
commit aa54491ae0
No known key found for this signature in database
GPG Key ID: B9B7231E01D924A1
1 changed files with 1 additions and 0 deletions

View File

@ -327,6 +327,7 @@ def search():
# Return 503 if temporarily blocked by captcha # Return 503 if temporarily blocked by captcha
if has_captcha(str(response)): if has_captcha(str(response)):
app.logger.error('503 (CAPTCHA)')
return render_template( return render_template(
'error.html', 'error.html',
blocked=True, blocked=True,