Prevent DNS fall back to default server to flood debug log.

This commit is contained in:
morpheus65535 2021-03-11 12:44:39 -05:00
parent cdaa38f6f1
commit 00a6437e23

View file

@ -362,7 +362,7 @@ def patch_create_connection():
except dns.exception.DNSException:
logger.warning("DNS: Couldn't resolve %s with DNS: %s", host, custom_resolver.nameservers)
logger.debug("DNS: Falling back to default DNS or IP on %s", host)
# logger.debug("DNS: Falling back to default DNS or IP on %s", host) <-- commented because it makes way too much noise in debug logs
return _orig_create_connection((host, port), *args, **kwargs)
patch_create_connection._sz_patched = True