Skip to content

Commit d1166d3

Browse files
authored
Merge pull request #860 from chotiwat/patch-1
Fix healthchecker execCommand output
2 parents b6235fb + 008a62b commit d1166d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/healthchecker/health_checker.go

Lines changed: 1 addition & 1 deletion
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)