Log rate-limiting errors

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

Fixes #914
このコミットが含まれているのは:
Ben Busby 2023-01-04 10:21:16 -07:00
コミット aa54491ae0
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: B9B7231E01D924A1
1個のファイルの変更1行の追加0行の削除

ファイルの表示

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