Skip to content

Commit

Permalink
log resp code
Browse files Browse the repository at this point in the history
  • Loading branch information
psainics committed Apr 8, 2024
1 parent b7a2c31 commit b857dcf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ public Response retrySapTransportCall(URL endpoint, String mediaType) throws IOE
try {
LOG.debug("Retrying the call to URL {}.", endpoint);
response = transport(endpoint, mediaType);
if (response != null) {
LOG.debug("Response code for URL {} is {}.", endpoint, response.code());
}
if (response != null && response.code() >= HttpURLConnection.HTTP_INTERNAL_ERROR) {
throw new RetryableException();
}
Expand Down

0 comments on commit b857dcf

Please sign in to comment.