Skip to content

Commit

Permalink
Merge pull request #8904 from Luap99/fix-podman-logs
Browse files Browse the repository at this point in the history
Fix podman logs read partial log lines
  • Loading branch information
openshift-merge-robot authored Jan 7, 2021
2 parents 68c9e02 + b7f699c commit a475150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpod/container_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
}
Expand Down

0 comments on commit a475150

Please sign in to comment.