mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-05-06 01:07:07 +00:00
fix execCommand output
This commit is contained in:
committed by
GitHub
parent
b6235fb72d
commit
008a62bb90
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user