diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-01-07 06:11:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-07 06:11:37 -0500 |
commit | a47515008b3c0dde9f161faa0d9f455ca6772393 (patch) | |
tree | 8f8219d3e2570a8ea68c8199dc3881c7706c3552 | |
parent | 68c9e02df72cbdfb2d239fb1de020bc1e0dabad3 (diff) | |
parent | b7f699c19933899eb674ac96a28f3e93c7f84d9c (diff) | |
download | podman-a47515008b3c0dde9f161faa0d9f455ca6772393.tar.gz podman-a47515008b3c0dde9f161faa0d9f455ca6772393.tar.bz2 podman-a47515008b3c0dde9f161faa0d9f455ca6772393.zip |
Merge pull request #8904 from Luap99/fix-podman-logs
Fix podman logs read partial log lines
-rw-r--r-- | libpod/container_log.go | 2 |
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 = "" } |