From dae59705a1414a861f1de13dfb1e69fe6581c084 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 28 Mar 2023 08:53:51 -0500 Subject: remove places the app could exit Signed-off-by: Jeff Carr --- unix.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'unix.go') diff --git a/unix.go b/unix.go index a8eb28b..09635d8 100644 --- a/unix.go +++ b/unix.go @@ -24,6 +24,7 @@ func Escalate() { cmd.Stderr = os.Stderr err := cmd.Run() if err != nil { + log(logError, "exit in Escalate()") exit(err) } } @@ -45,7 +46,7 @@ func DumpPublicDNSZone(zone string) { func dumpIPs(host string) { ips, err := net.LookupIP(host) if err != nil { - exit(err) + log(logError, "dumpIPs() failed:", err) } for _, ip := range ips { log(host, ip) -- cgit v1.2.3