Skip to content

Commit

Permalink
discovery log original error and remove the full body
Browse files Browse the repository at this point in the history
  • Loading branch information
mcorbin committed Jan 6, 2024
1 parent 4e0bc66 commit 32d37dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discovery/http/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (c *HTTPDiscovery) request() error {
}
var payload ResultPayload
if err := json.Unmarshal(responseBody, &payload); err != nil {
return fmt.Errorf("HTTP Discovery: fail to convert the payload %s from json", string(responseBody))
return fmt.Errorf("HTTP Discovery: fail to convert the payload from json: %s", err.Error())
}
return c.Healthcheck.ReloadForSource(
fmt.Sprintf("%s-%s", healthcheck.SourceHTTPDiscovery, c.Config.Name),
Expand Down

0 comments on commit 32d37dc

Please sign in to comment.