summaryrefslogtreecommitdiff
path: root/bash.go
diff options
context:
space:
mode:
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)
}
}