From e7143525011610af8e487e3d9ae63e533b27e4fe Mon Sep 17 00:00:00 2001 From: jgallucci32 Date: Fri, 12 Jun 2020 11:04:36 -0700 Subject: Changed from t.StopAtEOF() to t.Stop() and added error check Signed-off-by: jgallucci32 --- libpod/container_log.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libpod') diff --git a/libpod/container_log.go b/libpod/container_log.go index f73a5ffbf..da3ed3113 100644 --- a/libpod/container_log.go +++ b/libpod/container_log.go @@ -83,7 +83,11 @@ func (c *Container) readFromLogFile(options *logs.LogOptions, logChannel chan *l break } if state != define.ContainerStateRunning && state != define.ContainerStatePaused { - t.StopAtEOF() + err := t.Stop() + if err != nil { + logrus.Error(err) + break + } break } time.Sleep(1 * time.Second) -- cgit v1.2.3-54-g00ecf