Skip to content

Commit

Permalink
[improve][admin] Print error log if handle http response fails (apach…
Browse files Browse the repository at this point in the history
…e#23563)

(cherry picked from commit c15a0d6)
(cherry picked from commit d9685a5)
  • Loading branch information
poorbarcode authored and srinath-ctds committed Nov 13, 2024
1 parent 5479513 commit 7b0677b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,11 @@ public String getReasonPhrase() {
if (response.hasResponseBody()) {
jerseyResponse.setEntityStream(response.getResponseBodyAsStream());
}
callback.response(jerseyResponse);
try {
callback.response(jerseyResponse);
} catch (Exception ex) {
log.error("failed to handle the http response {}", jerseyResponse, ex);
}
}
}));
return responseFuture;
Expand Down

0 comments on commit 7b0677b

Please sign in to comment.