Skip to content

Commit

Permalink
Log warning in rest client handler after recent surge of warning fail…
Browse files Browse the repository at this point in the history
…ures

Signed-off-by: Suraj Singh <surajrider@gmail.com>
  • Loading branch information
dreamer-89 committed Mar 4, 2022
1 parent 729bc43 commit f594302
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ private ResponseOrResponseException convertResponse(InternalRequest request, Nod
if (isSuccessfulResponse(statusCode) || request.ignoreErrorCodes.contains(response.getStatusLine().getStatusCode())) {
onResponse(node);
if (request.warningsHandler.warningsShouldFailRequest(response.getWarnings())) {
logger.warn(Arrays.toString(response.getWarnings().toArray()));
throw new WarningFailureException(response);
}
return new ResponseOrResponseException(response);
Expand Down

0 comments on commit f594302

Please sign in to comment.