From ad8408739ef8a4eee99e7076d41994854bddf743 Mon Sep 17 00:00:00 2001 From: TayGov Date: Wed, 6 Jul 2022 09:23:10 -0700 Subject: [PATCH] Add temporary log --- .../ca/bc/gov/open/ecrc/service/EcrcWebMethodsServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) 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 fdc84ce62..d309bafdd 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); }