diff options
| author | Jeff Carr <[email protected]> | 2024-01-03 12:40:31 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-03 12:40:31 -0600 |
| commit | e14770e94c9ec126a3d418d6d2b2f15ef8cf1607 (patch) | |
| tree | 12b223cbe9cb9c6ef98b23d8bf6ae96e2040b3d7 /hostnameStatus.go | |
| parent | 1324717de0a1ccd830ca34aa03e0faa9e6d93a83 (diff) | |
fixed stuff
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'hostnameStatus.go')
| -rw-r--r-- | hostnameStatus.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/hostnameStatus.go b/hostnameStatus.go index f8ada99..f25598b 100644 --- a/hostnameStatus.go +++ b/hostnameStatus.go @@ -11,11 +11,12 @@ import ( "time" "reflect" "strings" + "errors" "go.wit.com/log" - "go.wit.com/gui" + "go.wit.com/gui/gui" "go.wit.com/gui/gadgets" - "go.wit.com/control-panel-dns/cloudflare" + "go.wit.com/gui/cloudflare" ) type hostnameStatus struct { @@ -156,7 +157,7 @@ func (hs *hostnameStatus) createDNSrecord(value string) bool { func (hs *hostnameStatus) Update() { log.Info("hostnameStatus() Update() START") if hs == nil { - log.Error("hostnameStatus() Update() hs == nil") + log.Error(errors.New("hostnameStatus() Update() hs == nil")) return } duration := timeFunction(func () { @@ -237,7 +238,7 @@ func (hs *hostnameStatus) set(a any, s string) { ol.Set(s) return } - log.Error("unknown type TypeOf(a) =", reflect.TypeOf(a), "a =", a) + log.Warn("unknown type TypeOf(a) =", reflect.TypeOf(a), "a =", a) os.Exit(0) } |
