mirror of
https://github.com/containers/podman.git
synced 2025-06-17 23:20:59 +08:00
Add <return> to lines returen in podman-remote logs
Every line is sent back individually over the APIv2 as logs, but we are not adding the '\n' to give us line breaks. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -370,7 +370,7 @@ func (ic *ContainerEngine) ContainerLogs(_ context.Context, nameOrIDs []string,
|
||||
case <-ctx.Done():
|
||||
return err
|
||||
case line := <-outCh:
|
||||
_, _ = io.WriteString(options.Writer, line)
|
||||
_, _ = io.WriteString(options.Writer, line+"\n")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user