summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArindam Mondal <arind.mondal@samsung.com>2019-05-09 13:25:50 +0900
committerarindamm <arind.mondal@samsung.com>2019-05-09 13:33:09 +0900
commit8235ea6f97340128d9a01b295c0a9e8127fe2a21 (patch)
tree6eba4a11e03d8f49b0b5eee804463711e7e0b95c
parent04a47f81a2c211036d2b6a3a5829344d40528346 (diff)
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 <arind.mondal@samsung.com>
-rw-r--r--asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java3
1 files changed, 2 insertions, 1 deletions
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;