summaryrefslogtreecommitdiff
path: root/poll.go
diff options
context:
space:
mode:
Diffstat (limited to 'poll.go')
-rw-r--r--poll.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/poll.go b/poll.go
index f3bd4ce..b4e7654 100644
--- a/poll.go
+++ b/poll.go
@@ -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 {