From 3c60cc769925755f779efad571a6e0afb6d2a94a Mon Sep 17 00:00:00 2001 From: ezhil Date: Fri, 30 Nov 2018 16:36:45 +0530 Subject: Fixed sonar issues in PolicyManagerClient.java Logged exceptions using Logger Issue-ID: CCSDK-769 Change-Id: Id2f9c5c11fd76e10598e8dfc23c4d115a102ff10 Signed-off-by: ezhil --- .../onap/ccsdk/apps/ms/vlantagapi/extinf/pm/PolicyManagerClient.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ms') diff --git a/ms/vlantag-api/src/main/java/org/onap/ccsdk/apps/ms/vlantagapi/extinf/pm/PolicyManagerClient.java b/ms/vlantag-api/src/main/java/org/onap/ccsdk/apps/ms/vlantagapi/extinf/pm/PolicyManagerClient.java index 2378584e..f312cc36 100644 --- a/ms/vlantag-api/src/main/java/org/onap/ccsdk/apps/ms/vlantagapi/extinf/pm/PolicyManagerClient.java +++ b/ms/vlantag-api/src/main/java/org/onap/ccsdk/apps/ms/vlantagapi/extinf/pm/PolicyManagerClient.java @@ -93,6 +93,7 @@ public class PolicyManagerClient { result = response.getBody(); } catch (RestClientException rce) { + log.error(rce.getMessage()); throw new VlantagApiException(rce.getLocalizedMessage()); } return result; @@ -118,6 +119,7 @@ public class PolicyManagerClient { requestObject.setPolicyName(policyName); retVal = extractResourceModelsFromResponse(getConfigUsingPost(requestObject)); } catch (IOException e) { + log.error(e.getMessage()); throw new VlantagApiException(e); } return retVal; -- cgit 1.2.3-korg