Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit d15ce13

Browse files
committed
Fix log statement 'failed to exit' timeout accuracy
log statement should reflect how long it actually waited, not how long it theoretically could wait based on the 'seconds' integer passed in. Signed-off-by: Cam <[email protected]>
1 parent 0ad2293 commit d15ce13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

daemon/stop.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (daemon *Daemon) containerStop(container *containerpkg.Container, seconds i
8383
return err
8484
}
8585

86-
logrus.WithField("container", container.ID).Infof("Container failed to exit within %d seconds of signal %d - using the force", seconds, stopSignal)
86+
logrus.WithField("container", container.ID).Infof("Container failed to exit within %s of signal %d - using the force", wait, stopSignal)
8787
// Stop either failed or container didnt exit, so fallback to kill.
8888
if err := daemon.Kill(container); err != nil {
8989
// got a kill error, but give container 2 more seconds to exit just in case

0 commit comments

Comments
 (0)