Skip to content

Commit

Permalink
Fix vault debug so that captured logs include newlines. (#12175)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncabatoff committed Jul 29, 2021
1 parent 82a99f1 commit 7a10da0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/12175.txt
@@ -0,0 +1,3 @@
```release-note:bug
cli: vault debug now puts newlines after every captured log line.
```
3 changes: 3 additions & 0 deletions command/debug.go
Expand Up @@ -1000,6 +1000,9 @@ func (c *DebugCommand) writeLogs(ctx context.Context) {
for {
select {
case log := <-logCh:
if !strings.HasSuffix(log, "\n") {
log += "\n"
}
_, err = out.WriteString(log)
if err != nil {
c.captureError("log", err)
Expand Down

0 comments on commit 7a10da0

Please sign in to comment.