Skip to content

Commit

Permalink
fix: log termination signal
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Bauer <[email protected]>
  • Loading branch information
fsrv-xyz committed Oct 24, 2024
1 parent e43191e commit d27722a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ func main() {
ch := make(chan os.Signal, 1)
signal.Notify(ch, os.Interrupt, syscall.SIGTERM, syscall.SIGHUP)
go func() {
<-ch
slog.Info("Received termination, signaling shutdown")
terminationSignal := <-ch
slog.Info("Received termination, signaling shutdown", slog.String("signal", terminationSignal.String()))
cancel()
}()

Expand Down Expand Up @@ -160,7 +160,7 @@ func main() {
panic(err)
}

lastChecksum := [16]byte{}
var lastChecksum [16]byte

ticker := time.NewTicker(config.interval)

Expand Down

0 comments on commit d27722a

Please sign in to comment.