summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorjgallucci32 <john.gallucci.iv@gmail.com>2020-06-12 11:04:36 -0700
committerjgallucci32 <john.gallucci.iv@gmail.com>2020-06-12 11:10:08 -0700
commite7143525011610af8e487e3d9ae63e533b27e4fe (patch)
tree385a0fe32030fdd8148e3b0ecce37e0bdce3a15b /libpod
parent9ac115e691d45ec565d0152c630e97c8081e1a71 (diff)
downloadpodman-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>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_log.go6
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)