Merge pull request #8904 from Luap99/fix-podman-logs

Fix podman logs read partial log lines
This commit is contained in:
OpenShift Merge Robot
2021-01-07 06:11:37 -05:00
committed by GitHub

View File

@ -82,7 +82,7 @@ func (c *Container) readFromLogFile(ctx context.Context, options *logs.LogOption
if nll.Partial() {
partial += nll.Msg
continue
} else if !nll.Partial() && len(partial) > 1 {
} else if !nll.Partial() && len(partial) > 0 {
nll.Msg = partial + nll.Msg
partial = ""
}