diff options
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) } |
