aboutsummaryrefslogtreecommitdiff
path: root/pkg/api/handlers
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-14 11:04:15 -0400
committerGitHub <noreply@github.com>2021-09-14 11:04:15 -0400
commit5e54f72a9fd119168a29c0133cac2ed36d2014b5 (patch)
treeeb992bd5ac686abac4fc442c8b5640e72c1a8532 /pkg/api/handlers
parentcc9491447479844ffdd27ba1c310d7e0a5a59a79 (diff)
parent31604b43d13c93bc730b07227ed0c39a7b3314cd (diff)
downloadpodman-5e54f72a9fd119168a29c0133cac2ed36d2014b5.tar.gz
podman-5e54f72a9fd119168a29c0133cac2ed36d2014b5.tar.bz2
podman-5e54f72a9fd119168a29c0133cac2ed36d2014b5.zip
Merge pull request #11562 from Luap99/revert-log
[v3.4] Revert "logs: adjust handling around partial log messages"
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r--pkg/api/handlers/compat/containers_logs.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/containers_logs.go b/pkg/api/handlers/compat/containers_logs.go
index 4adcaa511..d73b02b47 100644
--- a/pkg/api/handlers/compat/containers_logs.go
+++ b/pkg/api/handlers/compat/containers_logs.go
@@ -153,7 +153,9 @@ func LogsFromContainer(w http.ResponseWriter, r *http.Request) {
}
frame.WriteString(line.Msg)
- if !line.Partial() {
+ // Log lines in the compat layer require adding EOL
+ // https://github.com/containers/podman/issues/8058
+ if !utils.IsLibpodRequest(r) {
frame.WriteString("\n")
}