From 4116c4d6e558821bdcb28db9d904810ee269a7a5 Mon Sep 17 00:00:00 2001 From: Nathan Grennan Date: Fri, 22 Nov 2024 22:32:15 -0700 Subject: [PATCH] Removing the DNS lookup errors, because they are to be expected and they are noise --- main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.go b/main.go index ef5f526..00f9d17 100644 --- a/main.go +++ b/main.go @@ -30,9 +30,7 @@ func main() { // Perform the DNS query response, _, err := client.Exchange(message, *dnsserver+":53") - if err != nil { - logWithTimestamp(fmt.Sprintf("Error performing DNS lookup: %v", err)) - } else { + if err == nil { // Process the results outageDetected := processDNSResponse(response, *gateway, *debug) if outageDetected && *noloop {