Skip to content

Commit

Permalink
Merge pull request #473 from bcgov/feature/add-exception-log
Browse files Browse the repository at this point in the history
Add temporary log
  • Loading branch information
TayGov authored Jul 6, 2022
2 parents 4c8d291 + ad84087 commit 8b35efb
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 8b35efb

Please sign in to comment.