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 d4dd6566ee

View file

@ -691,7 +691,7 @@ func (r *Runtime) UpdateStatus(c *Container) error {
return true, 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
} else {
c.state.Finished = getFinishedTime(fi)