summaryrefslogtreecommitdiff
path: root/unix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-16 09:02:59 -0600
committerJeff Carr <[email protected]>2023-12-16 09:02:59 -0600
commit27696b976485f989d664f330e9c328de93e8e672 (patch)
tree3fd2fe38e90e78d782e6f65cc726de8c54fa7c18 /unix.go
parentdbd81e9462846f716ba4cebe383d2215e01ce563 (diff)
gocui mode works again
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'unix.go')
-rw-r--r--unix.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/unix.go b/unix.go
index 3660095..c9b5cc0 100644
--- a/unix.go
+++ b/unix.go
@@ -5,6 +5,7 @@
package main
import (
+ "log"
"os"
"os/exec"
"net"
@@ -22,7 +23,7 @@ func Escalate() {
cmd.Stderr = os.Stderr
err := cmd.Run()
if err != nil {
- log(logError, "exit in Escalate()")
+ log.Println(logError, "exit in Escalate()")
exit(err)
}
}
@@ -37,17 +38,17 @@ func DumpPublicDNSZone(zone string) {
panic(err)
}
for _, entry := range entries {
- log(entry)
+ log.Println(entry)
}
}
func dumpIPs(host string) {
ips, err := net.LookupIP(host)
if err != nil {
- log(logError, "dumpIPs() failed:", err)
+ log.Println(logError, "dumpIPs() failed:", err)
}
for _, ip := range ips {
- log(host, ip)
+ log.Println(host, ip)
}
}