mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
Fix vault debug so that captured logs include newlines. (#12175)
This commit is contained in:
3
changelog/12175.txt
Normal file
3
changelog/12175.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
cli: vault debug now puts newlines after every captured log line.
|
||||
```
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user