diff --git a/backend/services/acs/internal/server/handler/status.go b/backend/services/acs/internal/server/handler/status.go index 9cd3c91..4ab0cfd 100644 --- a/backend/services/acs/internal/server/handler/status.go +++ b/backend/services/acs/internal/server/handler/status.go @@ -11,7 +11,9 @@ func (h *Handler) HandleCpeStatus() { if cpe == "" { continue } - log.Println("Checking CPE " + cpe + " status") + if h.acsConfig.DebugMode { + log.Println("Checking CPE " + cpe + " status") + } if time.Since(h.Cpes[cpe].LastConnection) > h.acsConfig.KeepAliveInterval { log.Printf("LastConnection: %s, KeepAliveInterval: %s", h.Cpes[cpe].LastConnection, h.acsConfig.KeepAliveInterval) log.Println("CPE", cpe, "is offline") @@ -22,4 +24,4 @@ func (h *Handler) HandleCpeStatus() { } time.Sleep(10 * time.Second) } -} +} \ No newline at end of file