diff --git a/src/ecrc-api/src/main/java/ca/bc/gov/open/ecrc/service/EcrcWebMethodsServiceImpl.java b/src/ecrc-api/src/main/java/ca/bc/gov/open/ecrc/service/EcrcWebMethodsServiceImpl.java index fdc84ce6..d309bafd 100644 --- a/src/ecrc-api/src/main/java/ca/bc/gov/open/ecrc/service/EcrcWebMethodsServiceImpl.java +++ b/src/ecrc-api/src/main/java/ca/bc/gov/open/ecrc/service/EcrcWebMethodsServiceImpl.java @@ -63,11 +63,13 @@ public ResponseEntity 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); }