Skip to content

Commit

Permalink
avoid null pointer, if signal is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Mancke committed Mar 9, 2017
1 parent b907df1 commit a8ecc16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logging/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func LifecycleStop(appName string, signal os.Signal, err error) {
WithError(err).
Errorf("stopping application: %v (%v)", appName, err)
} else {
Logger.WithFields(fields).Infof("stopping application: %v (%v)", appName, signal.String())
Logger.WithFields(fields).Infof("stopping application: %v (%v)", appName, signal)
}
}

Expand Down

0 comments on commit a8ecc16

Please sign in to comment.