diff --git a/pkg/generic/generic.go b/pkg/generic/generic.go index 64c827c4..929f8426 100644 --- a/pkg/generic/generic.go +++ b/pkg/generic/generic.go @@ -78,6 +78,8 @@ func RunCommand(command string, args, successOrFail string) error { cmdStr := toRun.String() log.Infof("Running command: %s", cmdStr) err := toRun.Run() + log.Infof("Logging stdout from command: %s", stdout.String()) + if successOrFail == "succeeds" && err != nil { return fmt.Errorf("command '%s' did not succeed. error: '%v'. stderr: '%s'", cmdStr, err, stderr.String()) }