Merge pull request #1348 from mrunalp/debug_exit_file

Add container id to exit file missing warning
This commit is contained in:
Antonio Murdaca 2018-02-17 01:02:58 +01:00 committed by GitHub
commit 6de90e046a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)