Skip to content

Commit

Permalink
Merge pull request kubernetes#2219 from mborsz/log
Browse files Browse the repository at this point in the history
Improve error logging in exec service
  • Loading branch information
k8s-ci-robot authored Dec 15, 2022
2 parents 945ac9a + 67cd0ed commit 4cc5ad9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (a *apiAvailabilityMeasurement) pollHost(hostIP string) (string, error) {
cmd := fmt.Sprintf("curl --connect-timeout %d -s -k -w \"%%{http_code}\" -o /dev/null https://%s:443/readyz", a.hostPollTimeoutSeconds, hostIP)
output, err := execservice.RunCommand(pod, cmd)
if err != nil {
return "", fmt.Errorf("problem with RunCommand(): %w", err)
return "", fmt.Errorf("problem with RunCommand(): output=%q, err=%w", output, err)
}
return output, nil
}
Expand Down

0 comments on commit 4cc5ad9

Please sign in to comment.