Skip to content

Commit 32d37dc

Browse files
committed
discovery log original error and remove the full body
1 parent 4e0bc66 commit 32d37dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discovery/http/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (c *HTTPDiscovery) request() error {
100100
}
101101
var payload ResultPayload
102102
if err := json.Unmarshal(responseBody, &payload); err != nil {
103-
return fmt.Errorf("HTTP Discovery: fail to convert the payload %s from json", string(responseBody))
103+
return fmt.Errorf("HTTP Discovery: fail to convert the payload from json: %s", err.Error())
104104
}
105105
return c.Healthcheck.ReloadForSource(
106106
fmt.Sprintf("%s-%s", healthcheck.SourceHTTPDiscovery, c.Config.Name),

0 commit comments

Comments
 (0)