diff options
| author | Jeff Carr <[email protected]> | 2024-01-03 19:33:13 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-03 19:33:13 -0600 |
| commit | c1a00fcc1a4cb67d8ba8ae97e90ceed95f73872d (patch) | |
| tree | b16ea631c3f8235a3d1bd2ce5b0109a939a735c5 /unix.go | |
| parent | 138f72728cbbd10ea3d64888a6482d4c1a21718e (diff) | |
use 'go.wit.com/log'
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'unix.go')
| -rw-r--r-- | unix.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 } |
