mirror of
https://github.com/zrepl/zrepl.git
synced 2025-08-25 13:35:46 +02:00
platformtest: logging-related refactorings
This commit is contained in:
@@ -32,7 +32,7 @@ func (e *ex) runNoOutput(expectSuccess bool, ctx context.Context, cmd string, ar
|
||||
buf, _ := circlog.NewCircularLog(32 << 10)
|
||||
ecmd.Stdout, ecmd.Stderr = buf, buf
|
||||
err := ecmd.Run()
|
||||
log.Printf("command output: %s", buf.String())
|
||||
log.WithField("output", buf.String()).Debug("command output")
|
||||
if _, ok := err.(*exec.ExitError); err != nil && !ok {
|
||||
panic(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user