diff options
Diffstat (limited to 'ms/neng')
-rw-r--r-- | ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImpl.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImpl.java b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImpl.java index b30ac0e6..ce7e3fd5 100644 --- a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImpl.java +++ b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImpl.java @@ -85,8 +85,7 @@ public class PolicyFinderServiceImpl implements PolicyFinder { GetConfigResponse getConfig(String policyName) throws Exception { GetConfigRequest getConfigRequest = new GetConfigRequest(); getConfigRequest.setPolicyName(policyName); - GetConfigResponse getConfigResponse = makeOutboundCall(getConfigRequest, GetConfigResponse.class); - return getConfigResponse; + return (makeOutboundCall(getConfigRequest, GetConfigResponse.class)); } <T, R> GetConfigResponse makeOutboundCall(T request, Class<R> response) throws Exception { @@ -97,7 +96,8 @@ public class PolicyFinderServiceImpl implements PolicyFinder { ResponseEntity<Object> resp = getRestTemplate().exchange(re, Object.class); if (HttpStatus.OK.equals(resp.getStatusCode())) { ObjectMapper objectmapper = new ObjectMapper(); - System.out.println(objectmapper.writeValueAsString(resp.getBody())); + log.info(objectmapper.writeValueAsString(resp.getBody())); + //System.out.println(objectmapper.writeValueAsString(resp.getBody())); List<Map<Object, Object>> respObj = objectmapper.readValue( objectmapper.writeValueAsString(resp.getBody()), new TypeReference<List<Map<Object, Object>>>() {}); |