mirror of
https://github.com/containers/podman.git
synced 2025-06-19 00:06:43 +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():
|
case <-ctx.Done():
|
||||||
return err
|
return err
|
||||||
case line := <-outCh:
|
case line := <-outCh:
|
||||||
_, _ = io.WriteString(options.Writer, line)
|
_, _ = io.WriteString(options.Writer, line+"\n")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user