Skip to content

Commit 008a62b

Browse files
authored
fix execCommand output
1 parent b6235fb commit 008a62b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/healthchecker/health_checker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func execCommand(timeout time.Duration, command string, args ...string) (string,
177177
cmd := exec.CommandContext(ctx, command, args...)
178178
out, err := cmd.CombinedOutput()
179179
if err != nil {
180-
klog.Infof("command %v failed: %v, %v\n", cmd, err, out)
180+
klog.Infof("command %v failed: %v, %s\n", cmd, err, string(out))
181181
return "", err
182182
}
183183

0 commit comments

Comments
 (0)