summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2021-01-07 00:04:38 +0100
committerPaul Holzinger <paul.holzinger@web.de>2021-01-07 00:04:38 +0100
commitb7f699c19933899eb674ac96a28f3e93c7f84d9c (patch)
treed6e7ffb3ea80eb25558dab9a5728eb0c8b9847c2 /libpod
parentbb82c37b731f06b9e0602400cf0657a90a2d7537 (diff)
downloadpodman-b7f699c19933899eb674ac96a28f3e93c7f84d9c.tar.gz
podman-b7f699c19933899eb674ac96a28f3e93c7f84d9c.tar.bz2
podman-b7f699c19933899eb674ac96a28f3e93c7f84d9c.zip
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>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_log.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_log.go b/libpod/container_log.go
index e58503bd3..f16e08353 100644
--- a/libpod/container_log.go
+++ b/libpod/container_log.go
@@ -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 = ""
}