From 8235ea6f97340128d9a01b295c0a9e8127fe2a21 Mon Sep 17 00:00:00 2001 From: Arindam Mondal Date: Thu, 9 May 2019 13:25:50 +0900 Subject: use logger to log exception sonar link:https://sonar.onap.org/project/issues?id=org.onap.so%3Aso&resolved=false&types=VULNERABILITY Issue-ID: SO-1859 Change-Id: I599ca396db3d24cbef56bb3aea8f83b2d52ff26d Signed-off-by: arindamm --- .../java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java b/asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java index 388302f46e..edf8ff338c 100644 --- a/asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java +++ b/asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java @@ -1898,7 +1898,8 @@ public class ToscaResourceInstaller { logger.debug("vfcResource request for resource customization id (" + resourceCustomizationUuid + ") : " + jsonStr); } catch (JsonProcessingException e) { - e.printStackTrace(); + logger.debug("Json Exception: {}", e.getMessage()); + logger.error("Exception occurred", e); } return jsonStr; -- cgit 1.2.3-korg