Skip to content

Commit

Permalink
Add temporary log
Browse files Browse the repository at this point in the history
  • Loading branch information
TayGov committed Jul 6, 2022
1 parent 4c8d291 commit ad84087
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ public ResponseEntity<String> callWebMethodsService(String uri, Object returnObj
obj.getString("message"), respCode), HttpStatus.BAD_REQUEST);
}
} catch (JsonProcessingException e) {
logger.error("Request json exception: ", e);
logger.error("For request guid: [{}] Failed to convert to json processing exception", requestGuid);
return new ResponseEntity<>(String.format(EcrcExceptionConstants.WEBSERVICE_ERROR_JSON_RESPONSE,
EcrcExceptionConstants.CONVERT_TO_JSON_ERROR, WebServiceStatusCodes.ERROR.getErrorCode()), HttpStatus.BAD_REQUEST);
} catch (Exception e) {
logger.error("For request guid: [{}] Error in call to webMethods", requestGuid);
logger.error("Request general exception: ", e);
return new ResponseEntity<>(String.format(EcrcExceptionConstants.WEBSERVICE_ERROR_JSON_RESPONSE,
EcrcExceptionConstants.WEBSERVICE_RESPONSE_ERROR, WebServiceStatusCodes.ERROR.getErrorCode()), HttpStatus.BAD_REQUEST);
}
Expand Down

0 comments on commit ad84087

Please sign in to comment.