Skip to content

Commit

Permalink
Don't add extra \n on logs
Browse files Browse the repository at this point in the history
When we print podman-remote logs, we are seeing extra newlines.

Fixes: containers#7942

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
  • Loading branch information
rhatdan committed Nov 8, 2020
1 parent e2b82e6 commit f0596f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/domain/infra/tunnel/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func (ic *ContainerEngine) ContainerLogs(_ context.Context, nameOrIDs []string,
case <-ctx.Done():
return err
case line := <-outCh:
_, _ = io.WriteString(options.Writer, line+"\n")
_, _ = io.WriteString(options.Writer, line)
}
}
}
Expand Down

0 comments on commit f0596f1

Please sign in to comment.