From c09108c0996c1b152cc45522afac7523c418f825 Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Mon, 16 Feb 2026 02:00:46 -0800 Subject: [PATCH] Don't spam log when hostname cannot resolve --- cmd/serve.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/serve.go b/cmd/serve.go index 5c775e3..b05931d 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -202,8 +202,10 @@ func handleStatus(w http.ResponseWriter, r *http.Request) { func isAddressReachable(addr string) (bool, error) { pinger, err := probing.NewPinger(addr) + // This error is from resolving a host that's currently off may not have a dns entry and we don't want to spam the log. + // We could display this in the web interface in the future instead of ignoring it. if err != nil { - return false, fmt.Errorf("error creating pinger: %v", err) + return false, nil } // Set privileged mode based on config pinger.SetPrivileged(cfg.Ping.Privileged)