Merge "Added log in case of exception in servicepluginfac"
[so.git] / 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) {