use warning level for hit rate limit error
This commit is contained in:
parent
28c96d0d35
commit
bb343a5cde
|
@ -398,7 +398,7 @@ def setup_error_page(app):
|
|||
|
||||
@app.errorhandler(429)
|
||||
def forbidden(e):
|
||||
LOG.error("Client hit rate limit on path %s", request.path)
|
||||
LOG.warning("Client hit rate limit on path %s", request.path)
|
||||
if request.path.startswith("/api/"):
|
||||
return jsonify(error="Rate limit exceeded"), 429
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue