Merge "Added log in case of exception in servicepluginfac"
authorSeshu Kumar M <seshu.kumar.m@huawei.com>
Tue, 18 Sep 2018 07:25:20 +0000 (07:25 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 18 Sep 2018 07:25:20 +0000 (07:25 +0000)
bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/workflow/service/ServicePluginFactory.java

index a6bdb59..6346309 100644 (file)
@@ -550,7 +550,6 @@ public class ServicePluginFactory {
                        jsonStr = mapper.writeValueAsString(srcObj);
                } catch (JsonProcessingException e) {
                        LOGGER.debug("SdcToscaParserException", e);
-                       e.printStackTrace();
                }
                return jsonStr;
        }
@@ -603,9 +602,9 @@ public class ServicePluginFactory {
                                try {
                                        responseContent = EntityUtils.toString(httpResponse.getEntity(), "UTF-8");
                                } catch (ParseException e) {
-                                       e.printStackTrace();
+                                       LOGGER.debug("ParseException in sendrequest", e);
                                } catch (IOException e) {
-                                       e.printStackTrace();
+                                       LOGGER.debug("IOException in sendrequest", e);
                                }
                        }
                        if (null != method) {