Add EOL to compat container logs
Signed-off-by: Alexander Zigelski <ali@crunchtime.dev>
This commit is contained in:
parent
4822cc8cab
commit
b26c6519ac
|
|
@ -148,7 +148,13 @@ func LogsFromContainer(w http.ResponseWriter, r *http.Request) {
|
|||
frame.WriteString(line.Time.Format(time.RFC3339))
|
||||
frame.WriteString(" ")
|
||||
}
|
||||
|
||||
frame.WriteString(line.Msg)
|
||||
// Log lines in the compat layer require adding EOL
|
||||
// https://github.com/containers/podman/issues/8058
|
||||
if !utils.IsLibpodRequest(r) {
|
||||
frame.WriteString("\n")
|
||||
}
|
||||
|
||||
if writeHeader {
|
||||
binary.BigEndian.PutUint32(header[4:], uint32(frame.Len()))
|
||||
|
|
|
|||
Loading…
Reference in New Issue