mirror of
https://github.com/schollz/croc.git
synced 2025-10-10 21:01:02 +02:00
rm logging from main.go
This commit is contained in:
parent
d6f1a63b7b
commit
76b1df5096
1 changed files with 4 additions and 4 deletions
8
main.go
8
main.go
|
@ -5,13 +5,13 @@ package main
|
|||
//go:generate git tag -af v$VERSION -m "v$VERSION"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"github.com/schollz/croc/v10/src/cli"
|
||||
"github.com/schollz/croc/v10/src/utils"
|
||||
log "github.com/schollz/logger"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -38,7 +38,8 @@ func main() {
|
|||
|
||||
go func() {
|
||||
if err := cli.Run(); err != nil {
|
||||
log.Error(err)
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
// Exit the program gracefully
|
||||
utils.RemoveMarkedFiles()
|
||||
|
@ -46,8 +47,7 @@ func main() {
|
|||
}()
|
||||
|
||||
// Wait for a termination signal
|
||||
sig := <-sigs
|
||||
log.Debugf("Received signal:", sig)
|
||||
_ = <-sigs
|
||||
utils.RemoveMarkedFiles()
|
||||
|
||||
// Exit the program gracefully
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue