summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-06-16 17:21:43 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-06-16 17:21:43 -0400
commite67dd9ffabff1fda156fe0c2f2e8bef8d3d6dfef (patch)
treee32cbc31d34e67b3771dd26431eea38cae3cb44b /pkg/domain/infra/tunnel
parent89630adbc418eac4a7eddf683226ee61f24f93be (diff)
downloadpodman-e67dd9ffabff1fda156fe0c2f2e8bef8d3d6dfef.tar.gz
podman-e67dd9ffabff1fda156fe0c2f2e8bef8d3d6dfef.tar.bz2
podman-e67dd9ffabff1fda156fe0c2f2e8bef8d3d6dfef.zip
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>
Diffstat (limited to 'pkg/domain/infra/tunnel')
-rw-r--r--pkg/domain/infra/tunnel/containers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/infra/tunnel/containers.go b/pkg/domain/infra/tunnel/containers.go
index 955149fcf..8f6f5c8b7 100644
--- a/pkg/domain/infra/tunnel/containers.go
+++ b/pkg/domain/infra/tunnel/containers.go
@@ -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")
}
}
}