From 77bf19889ff24aba360c5b457ca47b6d74f48e11 Mon Sep 17 00:00:00 2001 From: shubhada Date: Thu, 21 Dec 2017 18:48:30 +0530 Subject: Sonar Critical Use a logger 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 --- .../src/main/java/org/onap/appc/design/dbervices/DesignDBService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'appc-inbound/appc-design-services/provider') diff --git a/appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/dbervices/DesignDBService.java b/appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/dbervices/DesignDBService.java index 95746d876..1d895e773 100644 --- a/appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/dbervices/DesignDBService.java +++ b/appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/dbervices/DesignDBService.java @@ -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; } } -- cgit 1.2.3-korg