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
commitc420145c2eafd68f5e73b3ccadb8f442ecc878bf (patch)
tree6a518e2f8fa179a46980b2dbbec9b1575886e0e8 /bash.go
parent3be643036f81c364bda7d5b7502da2932a54a608 (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)
}
}