Skip to content

Commit 76b1df5

Browse files
committed
rm logging from main.go
1 parent d6f1a63 commit 76b1df5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: main.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ package main
55
//go:generate git tag -af v$VERSION -m "v$VERSION"
66

77
import (
8+
"fmt"
89
"os"
910
"os/signal"
1011
"syscall"
1112

1213
"github.com/schollz/croc/v10/src/cli"
1314
"github.com/schollz/croc/v10/src/utils"
14-
log "github.com/schollz/logger"
1515
)
1616

1717
func main() {
@@ -38,16 +38,16 @@ func main() {
3838

3939
go func() {
4040
if err := cli.Run(); err != nil {
41-
log.Error(err)
41+
fmt.Println(err)
42+
os.Exit(1)
4243
}
4344
// Exit the program gracefully
4445
utils.RemoveMarkedFiles()
4546
os.Exit(0)
4647
}()
4748

4849
// Wait for a termination signal
49-
sig := <-sigs
50-
log.Debugf("Received signal:", sig)
50+
_ = <-sigs
5151
utils.RemoveMarkedFiles()
5252

5353
// Exit the program gracefully

0 commit comments

Comments
 (0)