diff options
| author | Jeff Carr <[email protected]> | 2024-10-17 15:54:39 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-17 15:54:39 -0500 |
| commit | f5fb6736f60947ad493a0eac17b468177aa40139 (patch) | |
| tree | 5d4661357b67b9968f674b94413271f58aca0752 /poll.go | |
| parent | c3a69690eee158e676d7ce7a5aa3088a1dc7fc7a (diff) | |
make STDOUT output easier to read
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'poll.go')
| -rw-r--r-- | poll.go | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -64,8 +64,7 @@ func (h *HyperT) pollHypervisor() { continue } - log.Log(EVENT, "new droplet", d.Hostname, "was not in the config file") - log.Log(EVENT, "new droplet", d.Hostname, "moved", d.hname, h.Hostname, "config file hypervisor =", d.hname) + log.Log(EVENT, "new droplet", d.Hostname, "on", h.Hostname, "(in config file without preferred hypervisor)") } d.hname = h.Hostname } @@ -106,7 +105,7 @@ func clusterHealthy() (bool, string) { for _, d := range me.droplets { total += 1 - if d.State != "ON" { + if d.ConfigState != "ON" { continue } dur := time.Since(d.lastpoll) // Calculate the elapsed time @@ -117,7 +116,7 @@ func clusterHealthy() (bool, string) { continue } if d.CurrentState != "ON" { - log.Info("BAD STATE", d.State, d.Hostname, d.hname, "CurrentState =", d.CurrentState, shell.FormatDuration(dur)) + log.Info("BAD STATE", d.ConfigState, d.Hostname, d.hname, "CurrentState =", d.CurrentState, shell.FormatDuration(dur)) good = false failed += 1 } else { |
