From 8dd6146818186a3ecc4d26c82226210249822fbb Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Mon, 16 Sep 2024 16:03:56 +1000 Subject: [PATCH] again --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 1613e16..7dd4efc 100644 --- a/main.go +++ b/main.go @@ -338,14 +338,13 @@ func main() { // Sometimes host HA events can come through a few minutes after a VM restart event, so create a "fuzzy" starting time to search for host HA events fuzzyTime := vmRestartTime.Add(time.Duration(int64(time.Minute) * int64(*fuzzyMinutes))) - log.Printf("event: %v\n", event) if event.Vm == nil { - log.Printf("Can't read this event properly, skipping\n") + log.Printf("Can't read this event properly, skipping\n%v\n", event) continue } - //log.Printf("Failure event for VM '%s' restarted in cluster '%s' at %s\n", event.Vm.Name, event.ComputeResource.Name, event.CreatedTime.In(location).Format(time.ANSIC)) + log.Printf("Failure event for VM '%s' restarted in cluster '%s' at %s\n", event.Vm.Name, event.ComputeResource.Name, event.CreatedTime.In(location).Format(time.ANSIC)) // filter all the disconnected events to the ones belonging to this VM for _, e := range allVmDisconnectedEvents {