"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "command/debug.go" between
vault-1.8.1.tar.gz and vault-1.8.2.tar.gz

About: vault is a tool for secrets management, encryption as a service, and privileged access management.

debug.go  (vault-1.8.1):debug.go  (vault-1.8.2)
skipping to change at line 1003 skipping to change at line 1003
logCh, err := c.cachedClient.Sys().Monitor(ctx, "trace") logCh, err := c.cachedClient.Sys().Monitor(ctx, "trace")
if err != nil { if err != nil {
c.captureError("log", err) c.captureError("log", err)
return return
} }
for { for {
select { select {
case log := <-logCh: case log := <-logCh:
if !strings.HasSuffix(log, "\n") {
log += "\n"
}
_, err = out.WriteString(log) _, err = out.WriteString(log)
if err != nil { if err != nil {
c.captureError("log", err) c.captureError("log", err)
return return
} }
case <-ctx.Done(): case <-ctx.Done():
return return
} }
} }
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)