From b7f699c19933899eb674ac96a28f3e93c7f84d9c Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Thu, 7 Jan 2021 00:04:38 +0100 Subject: 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 --- libpod/container_log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = "" } -- cgit v1.2.3-54-g00ecf