From b5e92a5ff2f41ad55504653b2223011c768d5e6e Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Tue, 23 May 2023 12:13:01 +1000 Subject: [PATCH] add logging --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e4bd784..e65dc99 100644 --- a/main.go +++ b/main.go @@ -127,7 +127,7 @@ func main() { // Create a container view so that we can search vCenter for a VM if we found any failure events cv, _ := m.CreateContainerView(ctx, c.ServiceContent.RootFolder, []string{"VirtualMachine"}, true) - + fmt.Printf("Searching for hostfailure events\n") hostFailures := getEvents([]string{"com.vmware.vc.HA.DasHostFailedEvent"}, []types.ManagedObjectReference{}, *begin, *end) if len(hostFailures) > 0 {