summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-17 15:54:39 -0500
committerJeff Carr <[email protected]>2024-10-17 15:54:39 -0500
commitf5fb6736f60947ad493a0eac17b468177aa40139 (patch)
tree5d4661357b67b9968f674b94413271f58aca0752 /main.go
parentc3a69690eee158e676d7ce7a5aa3088a1dc7fc7a (diff)
make STDOUT output easier to read
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 8 insertions, 3 deletions
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()
}