summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-17 15:29:47 -0500
committerJeff Carr <[email protected]>2024-10-17 15:29:47 -0500
commitc3a69690eee158e676d7ce7a5aa3088a1dc7fc7a (patch)
tree7ba2800a50d9cadc38d442f9d99ffa815d8faf82 /http.go
parent25b07096685eef2582f3dac34093dc8b0973ffa6 (diff)
clean up logging of initial scan of droplets
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'http.go')
-rw-r--r--http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.go b/http.go
index 510d7a9..f0af65a 100644
--- a/http.go
+++ b/http.go
@@ -28,7 +28,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
}
dur := time.Since(d.lastpoll) // Calculate the elapsed time
if d.CurrentState != "ON" {
- fmt.Fprintln(w, "BAD STATE ", d.Hostname, "State =", d.State, "CurrentState =", d.CurrentState, shell.FormatDuration(dur))
+ fmt.Fprintln(w, "BAD STATE ", d.Hostname, d.hname, "(", d.State, "vs", d.CurrentState, ")", shell.FormatDuration(dur))
} else {
dur := time.Since(d.lastpoll) // Calculate the elapsed time
fmt.Fprintln(w, "GOOD STATE ON", d.Hostname, d.hname, shell.FormatDuration(dur))