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:
Daniel J Walsh
2020-06-16 17:21:43 -04:00
parent 89630adbc4
commit e67dd9ffab

View File

@ -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")
}
}
}