forked from zaclys/searxng
[mod] warn to info for failed ping limiter
This commit is contained in:
parent
da82436054
commit
e0bab6aa63
|
@ -83,7 +83,7 @@ def is_suspicious(network: IPv4Network | IPv6Network, request: flask.Request, re
|
||||||
|
|
||||||
ping_key = get_ping_key(network, request)
|
ping_key = get_ping_key(network, request)
|
||||||
if not redis_client.get(ping_key):
|
if not redis_client.get(ping_key):
|
||||||
logger.warning("missing ping (IP: %s) / request: %s", network.compressed, ping_key)
|
logger.info("missing ping (IP: %s) / request: %s", network.compressed, ping_key)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if renew:
|
if renew:
|
||||||
|
|
Loading…
Reference in New Issue