summaryrefslogtreecommitdiff
path: root/dnsLookupStatus.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-03 12:40:31 -0600
committerJeff Carr <[email protected]>2024-01-03 12:40:31 -0600
commit3be643036f81c364bda7d5b7502da2932a54a608 (patch)
tree38d2b345fa514b2330d33b757330dea3bd3ccee6 /dnsLookupStatus.go
parentf332c0eaf6e2a0a858f2ef8fe6ff064ed2543221 (diff)
fixed stuff
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'dnsLookupStatus.go')
-rw-r--r--dnsLookupStatus.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/dnsLookupStatus.go b/dnsLookupStatus.go
index d146464..143973d 100644
--- a/dnsLookupStatus.go
+++ b/dnsLookupStatus.go
@@ -18,9 +18,10 @@ import (
"time"
"strconv"
"reflect"
+ "errors"
"go.wit.com/log"
- "go.wit.com/gui"
+ "go.wit.com/gui/gui"
"go.wit.com/gui/gadgets"
"go.wit.com/shell"
@@ -127,7 +128,7 @@ func NewDigStatusWindow(p *gui.Node) *digStatus {
func (ds *digStatus) Update() {
log.Info("digStatus() Update() START")
if ds == nil {
- log.Error("digStatus() Update() ds == nil")
+ log.Error(errors.New("digStatus() Update() ds == nil"))
return
}
duration := timeFunction(func () {
@@ -206,7 +207,7 @@ func (ds *digStatus) 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)
}
@@ -216,12 +217,12 @@ func (ds *digStatus) updateDnsStatus() {
log.Info("updateDnsStatus() START")
if (ds == nil) {
- log.Error("updateDnsStatus() not initialized yet. ds == nil")
+ log.Error(errors.New("updateDnsStatus() not initialized yet. ds == nil"))
return
}
if (! ds.ready) {
- log.Error("updateDnsStatus() not ready yet")
+ log.Error(errors.New("updateDnsStatus() not ready yet"))
return
}