Skip to content

Commit

Permalink
Removing the DNS lookup errors, because they are to be expected and they
Browse files Browse the repository at this point in the history
are noise
  • Loading branch information
edgan committed Nov 23, 2024
1 parent 77eaa39 commit 4116c4d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4116c4d

Please sign in to comment.