From 6fc161896d95a17e751dba45cafa31fe30d5c09f Mon Sep 17 00:00:00 2001 From: Andrew Lader Date: Sun, 27 Sep 2020 13:55:02 -0700 Subject: [PATCH] Add log statement to handle interrupting logs --- go-gently.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go-gently.go b/go-gently.go index 971dc34..18a35c7 100644 --- a/go-gently.go +++ b/go-gently.go @@ -59,6 +59,8 @@ func (goodNight *GoodNight) Wait() { func waitForSignal(goodNight *GoodNight) { signalReceived := <-goodNight.signalListener + log.Print("\n") + log.Print("SIGNAL RECEIVED!") log.Printf("go-gently received OS signal '%s', will begin notifying registered structs", signalReceived) for _, itemToBeNotified := range goodNight.toBeNotified {