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
  • Loading branch information
poorbarcode authored Nov 6, 2024
1 parent ce0c1bb commit c15a0d6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,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 c15a0d6

Please sign in to comment.