From c733b2dcf26a53bf56d919781fd8acbc750a5adc Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 19 Nov 2023 11:21:54 +0200 Subject: pring out signal received --- cmd/gorum/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/gorum/main.go b/cmd/gorum/main.go index 9cb74c7..1318945 100644 --- a/cmd/gorum/main.go +++ b/cmd/gorum/main.go @@ -41,8 +41,7 @@ func contextWithSignal() (context.Context, context.CancelFunc) { go func() { ch := make(chan os.Signal, 1) signal.Notify(ch, os.Interrupt, syscall.SIGTERM, syscall.SIGINT) - <-ch - fmt.Println("Received shutdown signal") + fmt.Println("Received shutdown signal", <-ch) cancel() }() -- cgit v1.2.3