Log rate-limiting errors
Rate limiting is now reported to the console as an error message. Fixes #914main
parent
cec10e81d3
commit
aa54491ae0
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue