summaryrefslogtreecommitdiff
path: root/poll.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-30 18:09:54 -0500
committerJeff Carr <[email protected]>2024-10-30 18:09:54 -0500
commiteacf3b8bef9801126c5693660acc2d03e3664025 (patch)
tree10767cfa7fedabcb77383cb556146fcdfac2db3b /poll.go
parentbf52632cb79e91703079765cd8a85fc9f4098e92 (diff)
events is now c.E
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'poll.go')
-rw-r--r--poll.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/poll.go b/poll.go
index e82fe2e..defb947 100644
--- a/poll.go
+++ b/poll.go
@@ -111,7 +111,8 @@ func (h *HyperT) pollHypervisor() {
if dur > time.Minute*2 {
// what this means is the droplet probably wasn't migrated or the migrate failed
// where should this be checked? the status needs to be changed to OFF
- log.Info("UNKNOWN state for more than one minute remove map entry here?", name)
+ s := shell.FormatDuration(dur)
+ log.Info("UNKNOWN state for more than 2 minutes (clearing out ?)", name, s)
// it might be safe to set the status to OFF here. not really. this poll needs
// to be moved somewhere else. there needs to be a new goroutine not tied to the