Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ChitharaKarunasekera committed Jun 30, 2023
1 parent 6217a55 commit 4daa7fa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private Response handleParClientException(ParClientException exception) {
} else {
responseBuilder = Response.status(HttpServletResponse.SC_BAD_REQUEST);
}
log.error("PAR client Exception: ", exception.fillInStackTrace());
log.error("PAR client Exception: ", exception);
return responseBuilder.entity(parErrorResponse.toString()).build();
}

Expand All @@ -130,7 +130,7 @@ private Response handleParCoreException(ParCoreException parCoreException) {
parErrorResponse.put(OAuthConstants.OAUTH_ERROR_DESCRIPTION, parCoreException.getMessage());

Response.ResponseBuilder respBuilder = Response.status(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
log.error("PAR Server Exception: ", parCoreException.fillInStackTrace());
log.error("PAR Server Exception: ", parCoreException);
return respBuilder.entity(parErrorResponse.toString()).build();
}

Expand Down

0 comments on commit 4daa7fa

Please sign in to comment.