summaryrefslogtreecommitdiff
path: root/unix.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 /unix.go
parent138f72728cbbd10ea3d64888a6482d4c1a21718e (diff)
use 'go.wit.com/log'
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'unix.go')
-rw-r--r--unix.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/unix.go b/unix.go
index 722ec82..b09481a 100644
--- a/unix.go
+++ b/unix.go
@@ -5,7 +5,6 @@
package main
import (
- "log"
"os"
"os/exec"
"net"
@@ -13,6 +12,7 @@ import (
"fmt"
"strings"
+ "go.wit.com/log"
"go.wit.com/shell"
)
@@ -28,8 +28,8 @@ func Escalate() {
cmd.Stderr = os.Stderr
err := cmd.Run()
if err != nil {
- debug(LogError, "exit in Escalate()")
- exit(err)
+ log.Error(err, "exit in Escalate()")
+ log.Exit(err)
}
}
}
@@ -50,7 +50,7 @@ func DumpPublicDNSZone(zone string) {
func dumpIPs(host string) {
ips, err := net.LookupIP(host)
if err != nil {
- debug(LogError, "dumpIPs() failed:", err)
+ log.Error(err, "dumpIPs() failed")
}
for _, ip := range ips {
log.Println(host, ip)
@@ -91,7 +91,7 @@ func run(s string) string {
tmp := shell.Chomp(out.String())
// Output the results
- debug(LogExec, "Command Output:", tmp)
+ log.Info("Command Output:", tmp)
return tmp
}