diff options
| author | Jeff Carr <[email protected]> | 2024-10-17 15:54:39 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-17 15:54:39 -0500 |
| commit | f5fb6736f60947ad493a0eac17b468177aa40139 (patch) | |
| tree | 5d4661357b67b9968f674b94413271f58aca0752 /main.go | |
| parent | c3a69690eee158e676d7ce7a5aa3088a1dc7fc7a (diff) | |
make STDOUT output easier to read
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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() } |
