mirror of https://github.com/containers/podman.git
Fix podman logs read partial log lines
If a partial log line has the length 1 it was ignored by podman logs. Fixes #8879 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
This commit is contained in:
parent
bb82c37b73
commit
b7f699c199
|
@ -82,7 +82,7 @@ func (c *Container) readFromLogFile(ctx context.Context, options *logs.LogOption
|
||||||
if nll.Partial() {
|
if nll.Partial() {
|
||||||
partial += nll.Msg
|
partial += nll.Msg
|
||||||
continue
|
continue
|
||||||
} else if !nll.Partial() && len(partial) > 1 {
|
} else if !nll.Partial() && len(partial) > 0 {
|
||||||
nll.Msg = partial + nll.Msg
|
nll.Msg = partial + nll.Msg
|
||||||
partial = ""
|
partial = ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue