fix execCommand output

This commit is contained in:
Chotiwat Chawannakul
2024-02-14 13:57:11 -08:00
committed by GitHub
parent b6235fb72d
commit 008a62bb90

View File

@@ -177,7 +177,7 @@ func execCommand(timeout time.Duration, command string, args ...string) (string,
cmd := exec.CommandContext(ctx, command, args...)
out, err := cmd.CombinedOutput()
if err != nil {
klog.Infof("command %v failed: %v, %v\n", cmd, err, out)
klog.Infof("command %v failed: %v, %s\n", cmd, err, string(out))
return "", err
}