From c420145c2eafd68f5e73b3ccadb8f442ecc878bf Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 3 Jan 2024 19:33:13 -0600 Subject: use 'go.wit.com/log' Signed-off-by: Jeff Carr --- nsupdate.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'nsupdate.go') 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) } } } -- cgit v1.2.3