summaryrefslogtreecommitdiff
path: root/configfiles.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 /configfiles.go
parentc3a69690eee158e676d7ce7a5aa3088a1dc7fc7a (diff)
make STDOUT output easier to read
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'configfiles.go')
-rw-r--r--configfiles.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/configfiles.go b/configfiles.go
index 1bdf153..f758058 100644
--- a/configfiles.go
+++ b/configfiles.go
@@ -33,15 +33,15 @@ func readDropletFile(filename string) {
d = new(DropletT)
d.Hostname = name
if len(fields) > 1 && fields[1] != "ON" {
- d.State = "OFF"
+ d.ConfigState = "OFF"
} else {
- d.State = "ON"
+ d.ConfigState = "ON"
}
if len(fields) >= 3 {
d.hyperPreferred = fields[2]
}
me.droplets = append(me.droplets, d)
- log.Log(EVENT, "NEW CONFIG DROPLET", d.Hostname, d.State, d.hyperPreferred)
+ log.Log(EVENT, "config new droplet", d.Hostname, d.ConfigState, d.hyperPreferred)
} else {
log.Info("not sure what to do here. duplicate droplet", name, "in config file")
}
@@ -83,7 +83,7 @@ func addHypervisor(name string) *HyperT {
log.Info("not sure what to do here. duplicate hypervisor", name, "in config file")
return h
}
- log.Log(EVENT, "Adding new hypervisor", name)
+ log.Log(EVENT, "config new hypervisor", name)
h = new(HyperT)
h.Hostname = name
h.Autoscan = true