From 46b2a560c00d77971d0cbd7dd83ad040f1bb69f9 Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Tue, 8 Dec 2015 09:41:10 -0800 Subject: [PATCH] Add logging about subreaper Signed-off-by: Alexander Morozov --- containerd/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/containerd/main.go b/containerd/main.go index 6e9af13..88a5bc8 100644 --- a/containerd/main.go +++ b/containerd/main.go @@ -103,6 +103,9 @@ func daemon(id, stateDir string, concurrency, bufferSize int) error { } // only set containerd as the subreaper if it is not an init process if pid := os.Getpid(); pid != 1 { + logrus.WithFields(logrus.Fields{ + "pid": pid, + }).Debug("containerd is not init, set as subreaper") if err := setSubReaper(); err != nil { return err }