Add buffer size to signal handler log

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
Alexander Morozov 2015-12-08 09:43:49 -08:00
parent 46b2a560c0
commit 64705f5263

View file

@ -14,7 +14,9 @@ import (
) )
func startSignalHandler(supervisor *containerd.Supervisor, bufferSize int) { func startSignalHandler(supervisor *containerd.Supervisor, bufferSize int) {
logrus.Debug("containerd: starting signal handler") logrus.WithFields(logrus.Fields{
"bufferSize": bufferSize,
}).Debug("containerd: starting signal handler")
signals := make(chan os.Signal, bufferSize) signals := make(chan os.Signal, bufferSize)
signal.Notify(signals) signal.Notify(signals)
for s := range signals { for s := range signals {