mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	Fix vault debug so that captured logs include newlines. (#12175)
				
					
				
			This commit is contained in:
		| @@ -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
	 Nick Cabatoff
					Nick Cabatoff