Skip to content

Commit

Permalink
rm logging from main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Sep 5, 2024
1 parent d6f1a63 commit 76b1df5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -38,16 +38,16 @@ 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()
os.Exit(0)
}()

// Wait for a termination signal
sig := <-sigs
log.Debugf("Received signal:", sig)
_ = <-sigs
utils.RemoveMarkedFiles()

// Exit the program gracefully
Expand Down

0 comments on commit 76b1df5

Please sign in to comment.