From 008a62bb90164772a575e0dbeb21c031eb7b9761 Mon Sep 17 00:00:00 2001 From: Chotiwat Chawannakul Date: Wed, 14 Feb 2024 13:57:11 -0800 Subject: [PATCH] fix execCommand output --- pkg/healthchecker/health_checker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/healthchecker/health_checker.go b/pkg/healthchecker/health_checker.go index e3be82b1..94b718c8 100644 --- a/pkg/healthchecker/health_checker.go +++ b/pkg/healthchecker/health_checker.go @@ -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 }