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:
parent
9ac115e691
commit
e714352501
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue