diff options
author | jgallucci32 <john.gallucci.iv@gmail.com> | 2020-06-12 11:04:36 -0700 |
---|---|---|
committer | jgallucci32 <john.gallucci.iv@gmail.com> | 2020-06-12 11:10:08 -0700 |
commit | e7143525011610af8e487e3d9ae63e533b27e4fe (patch) | |
tree | 385a0fe32030fdd8148e3b0ecce37e0bdce3a15b | |
parent | 9ac115e691d45ec565d0152c630e97c8081e1a71 (diff) | |
download | podman-e7143525011610af8e487e3d9ae63e533b27e4fe.tar.gz podman-e7143525011610af8e487e3d9ae63e533b27e4fe.tar.bz2 podman-e7143525011610af8e487e3d9ae63e533b27e4fe.zip |
Changed from t.StopAtEOF() to t.Stop() and added error check
Signed-off-by: jgallucci32 <john.gallucci.iv@gmail.com>
-rw-r--r-- | libpod/container_log.go | 6 |
1 files changed, 5 insertions, 1 deletions
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) |