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 --- bash.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bash.go') diff --git a/bash.go b/bash.go index 5c49a39..7143c1f 100644 --- a/bash.go +++ b/bash.go @@ -2,7 +2,6 @@ package main import ( "io" - "log" "os" "os/exec" "os/signal" @@ -10,6 +9,8 @@ import ( "github.com/creack/pty" "golang.org/x/term" + + "go.wit.com/log" ) func test() error { @@ -54,7 +55,7 @@ func test() error { func mainBash() { if err := test(); err != nil { - debug(LogError, "exit in mainBash()") - exit(err) + log.Error(err, "exit in mainBash()") + log.Exit(err) } } -- cgit v1.2.3