diff options
| author | Jeff Carr <[email protected]> | 2024-01-03 19:33:13 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-03 19:33:13 -0600 |
| commit | c1a00fcc1a4cb67d8ba8ae97e90ceed95f73872d (patch) | |
| tree | b16ea631c3f8235a3d1bd2ce5b0109a939a735c5 /bash.go | |
| parent | 138f72728cbbd10ea3d64888a6482d4c1a21718e (diff) | |
use 'go.wit.com/log'
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'bash.go')
| -rw-r--r-- | bash.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) } } |
