use warning level for hit rate limit error

This commit is contained in:
Son NK 2020-07-11 19:28:54 +02:00
parent 28c96d0d35
commit bb343a5cde

View file

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