aboutsummaryrefslogtreecommitdiffstats
path: root/ms/neng/src
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2018-12-12 22:21:25 +0530
committerezhil <ezhrajam@in.ibm.com>2018-12-12 22:21:41 +0530
commit2ccdd188674b7fe85df61a8978257b7b5f7b1eea (patch)
tree164ad51a1394155c6f98c4e27cf9745a56286a67 /ms/neng/src
parent9321f6dea8f57f3e1b9a05c446e59d243f94bfc5 (diff)
Fixed sonar issues in SpringServiceImpl.java
Logged exceptions Issue-ID: CCSDK-818 Change-Id: I90fc2d9c8d7e2627fc2c1f80628a9f4a0e7531da Signed-off-by: ezhil <ezhrajam@in.ibm.com>
Diffstat (limited to 'ms/neng/src')
-rw-r--r--ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/service/SpringServiceImpl.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/service/SpringServiceImpl.java b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/service/SpringServiceImpl.java
index c5cabe51..347a2393 100644
--- a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/service/SpringServiceImpl.java
+++ b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/service/SpringServiceImpl.java
@@ -135,7 +135,7 @@ public class SpringServiceImpl implements SpringService {
if (e instanceof NengException) {
throw e;
} else {
- e.printStackTrace();
+ log.warning(e.getMessage());
throw new Exception("Internal error occurred while processing the request");
}
}
@@ -149,6 +149,7 @@ public class SpringServiceImpl implements SpringService {
try {
return policyDetailsRepository.findPolicyResponseByName(policyName);
} catch (Exception e) {
+ log.warning(e.getMessage());
return new PolicyDetails();
}
}
@@ -190,7 +191,7 @@ public class SpringServiceImpl implements SpringService {
if (e instanceof NengException) {
throw e;
} else {
- e.printStackTrace();
+ log.warning(e.getMessage());
throw new Exception("Internal error occurred while processing the request");
}
}