Sonar Critical Use a logger 21/26721/1
authorshubhada <SV00449682@techmahindra.com>
Thu, 21 Dec 2017 13:18:30 +0000 (18:48 +0530)
committershubhada <SV00449682@techmahindra.com>
Thu, 21 Dec 2017 13:18:50 +0000 (18:48 +0530)
Use a logger to log this exception
Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.openecomp.appc%3Aappc#assignees=Shubhada|resolved=false
Location:
src/main/java/org/openecomp/appc/design/dbervices/DesignDBService.java
Line No:541

Change-Id: Ie81f003ecba00b24fc4d9065b289650af3f846ca
Issue-ID: APPC-288
Signed-off-by: shubhada <SV00449682@techmahindra.com>
appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/dbervices/DesignDBService.java

index 95746d8..1d895e7 100644 (file)
@@ -538,7 +538,7 @@ public class DesignDBService {
         catch(Exception e)
         {
             log.error("Error while DB operation : " + e.getMessage());
-            e.printStackTrace();
+            log.error("Exception : ",e);
             throw e;
         }
     }