Merge pull request #860 from chotiwat/patch-1

Fix healthchecker execCommand output
This commit is contained in:
Kubernetes Prow Robot
2024-02-15 23:09:28 -08:00
committed by GitHub
+1 -1
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
}