use logger to log exception 18/87318/2
authorArindam Mondal <arind.mondal@samsung.com>
Thu, 9 May 2019 04:25:50 +0000 (13:25 +0900)
committerarindamm <arind.mondal@samsung.com>
Thu, 9 May 2019 04:33:09 +0000 (13:33 +0900)
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 <arind.mondal@samsung.com>
asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java

index 388302f..edf8ff3 100644 (file)
@@ -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;