From 00a6437e230e5f2e2c5f25824c004d1f57ec1b8c Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Thu, 11 Mar 2021 12:44:39 -0500 Subject: [PATCH] Prevent DNS fall back to default server to flood debug log. --- libs/subliminal_patch/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/subliminal_patch/http.py b/libs/subliminal_patch/http.py index 204924b04..4eecdbcc8 100644 --- a/libs/subliminal_patch/http.py +++ b/libs/subliminal_patch/http.py @@ -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