diff --git a/cmd/signaler_nonunix.go b/cmd/signaler_nonunix.go index 01580ea3a..eb8ca214a 100644 --- a/cmd/signaler_nonunix.go +++ b/cmd/signaler_nonunix.go @@ -18,6 +18,7 @@ func startSignaler(ctx context.Context) func() error { signal.Notify(sigChan, os.Interrupt) select { case <-sigChan: + log.Info(ctx, "Received termination signal", "signal", sig) return interrupted case <-ctx.Done(): return nil diff --git a/cmd/signaler_unix.go b/cmd/signaler_unix.go index 69c1023ed..666819e9c 100644 --- a/cmd/signaler_unix.go +++ b/cmd/signaler_unix.go @@ -33,6 +33,7 @@ func startSignaler(ctx context.Context) func() error { select { case sig := <-sigChan: if sig != triggerScanSignal { + log.Info(ctx, "Received termination signal", "signal", sig) return interrupted } log.Info(ctx, "Received signal, triggering a new scan", "signal", sig)