summaryrefslogtreecommitdiff
path: root/nsupdate.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-03 19:33:13 -0600
committerJeff Carr <[email protected]>2024-01-03 19:33:13 -0600
commitc420145c2eafd68f5e73b3ccadb8f442ecc878bf (patch)
tree6a518e2f8fa179a46980b2dbbec9b1575886e0e8 /nsupdate.go
parent3be643036f81c364bda7d5b7502da2932a54a608 (diff)
use 'go.wit.com/log'
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'nsupdate.go')
-rw-r--r--nsupdate.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/nsupdate.go b/nsupdate.go
index 6aef147..d86178f 100644
--- a/nsupdate.go
+++ b/nsupdate.go
@@ -7,6 +7,8 @@ package main
import (
"os"
+
+ "go.wit.com/log"
)
// ./go-nsupdate \
@@ -16,17 +18,17 @@ import (
func nsupdate() {
var tsigSecret string
- debug(true, "nsupdate() START")
+ log.Log(NET, "nsupdate() START")
cmd := "go-nsupdate --tsig-algorithm=hmac-sha512"
tsigSecret = os.Getenv("TIG_SECRET")
cmd += " --tig-secret=\"" + tsigSecret + "\""
cmd += " -i wlo1 " + me.hostname
- debug(true, "nsupdate() RUN:", cmd)
+ log.Log(NET, "nsupdate() RUN:", cmd)
for s, t := range me.ipmap {
if (t.IsReal()) {
if (t.ipv6) {
- debug(true, "nsupdate() found real AAAA =", s, "on iface", t.iface.Name)
+ log.Log(NET, "nsupdate() found real AAAA =", s, "on iface", t.iface.Name)
}
}
}