Skip to content

Commit

Permalink
Fix wrong logging for wrong fleet api version response (elastic#3673)
Browse files Browse the repository at this point in the history
  • Loading branch information
pchila authored Nov 3, 2023
1 parent e660098 commit 5f891b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/remote/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (c *Client) checkApiVersionHeaders(reqID string, resp *http.Response) {
if downgradeVersion := resp.Header.Get(elasticApiVersionHeaderKey); resp.StatusCode == http.StatusBadRequest && downgradeVersion != "" {
// fleet server requested a downgrade to a different api version, we should bubble up an error until some kind
// of fallback mechanism can instantiate the requested version. This is not yet implemented so we log an error
c.log.With("http.request.id", reqID).Errorf("fleet requested a different api version %q but this is currently not implemented: %q", downgradeVersion)
c.log.With("http.request.id", reqID).Errorf("fleet requested a different api version %q but this is currently not implemented", downgradeVersion)
}
}

Expand Down

0 comments on commit 5f891b0

Please sign in to comment.