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
commitc1a00fcc1a4cb67d8ba8ae97e90ceed95f73872d (patch)
treeb16ea631c3f8235a3d1bd2ce5b0109a939a735c5 /nsupdate.go
parent138f72728cbbd10ea3d64888a6482d4c1a21718e (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)
}
}
}