Skip to content

Commit

Permalink
Add log statement to handle interrupting logs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlader committed Sep 27, 2020
1 parent f9d3d7e commit 6fc1618
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go-gently.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6fc1618

Please sign in to comment.