From f5fb6736f60947ad493a0eac17b468177aa40139 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 17 Oct 2024 15:54:39 -0500 Subject: make STDOUT output easier to read Signed-off-by: Jeff Carr --- main.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 8f23757..671c935 100644 --- a/main.go +++ b/main.go @@ -34,9 +34,14 @@ func main() { // initialize the grid as unstable me.unstable = time.Now() - log.Info("create cluser for", argv.Hosts) + log.Info("command line hypervisors:", argv.Hosts) for _, name := range argv.Hosts { - h := addHypervisor(name) + h := findHypervisor(name) + if h != nil { + log.Info("command line hypervisor", name, "already in config file") + continue + } + h = addHypervisor(name) h.Active = true } @@ -52,7 +57,7 @@ func main() { // start the watchdog polling for each hypervisor for _, h := range me.hypers { - log.Info("starting watchdog here for hostname =", h.Hostname) + log.Info("starting polling on", h.Hostname) go h.NewWatchdog() } -- cgit v1.2.3