Add container id to exit file missing warning

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2018-02-16 13:13:32 -08:00
parent 4e6ed3d974
commit 8a0fc5a963

View file

@ -691,7 +691,7 @@ func (r *Runtime) UpdateStatus(c *Container) error {
return true, nil return true, nil
}) })
if err != nil { if err != nil {
logrus.Warnf("failed to find container exit file: %v", err) logrus.Warnf("failed to find container exit file for %v: %v", c.id, err)
c.state.ExitCode = -1 c.state.ExitCode = -1
} else { } else {
c.state.Finished = getFinishedTime(fi) c.state.Finished = getFinishedTime(fi)