summaryrefslogtreecommitdiff
path: root/bash.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 /bash.go
parent138f72728cbbd10ea3d64888a6482d4c1a21718e (diff)
use 'go.wit.com/log'
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'bash.go')
-rw-r--r--bash.go7
1 files changed, 4 insertions, 3 deletions
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)
}
}