diff --git a/changelog/12175.txt b/changelog/12175.txt new file mode 100644 index 0000000000000..a75b21cabd4ab --- /dev/null +++ b/changelog/12175.txt @@ -0,0 +1,3 @@ +```release-note:bug +cli: vault debug now puts newlines after every captured log line. +``` diff --git a/command/debug.go b/command/debug.go index 14b8cbd00f4f7..a3cda921c96f6 100644 --- a/command/debug.go +++ b/command/debug.go @@ -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)