Changed from t.StopAtEOF() to t.Stop() and added error check

Signed-off-by: jgallucci32 <john.gallucci.iv@gmail.com>
This commit is contained in:
jgallucci32
2020-06-12 11:04:36 -07:00
parent 9ac115e691
commit e714352501

View File

@ -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)