Skip to content

Commit

Permalink
Improve error logging in exec service
Browse files Browse the repository at this point in the history
  • Loading branch information
mborsz committed Dec 15, 2022
1 parent 38556c5 commit 67cd0ed
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 67cd0ed

Please sign in to comment.