From 7fcc895e05176b786cd6dcfaf8aba8190c53e1e7 Mon Sep 17 00:00:00 2001 From: Michal Korman Date: Thu, 24 May 2018 12:47:40 +0200 Subject: Replace printStackTrace with usage of logger Change-Id: I648e5a25337beca1f8c483ba6e5359d245e237d3 Issue-ID: SO-642 Signed-off-by: mkorman --- .../camunda/bpmn/plugin/urnmap/resources/URNResource.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'bpmn/MSOURN-plugin/src/main/java/org/openecomp') diff --git a/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/URNResource.java b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/URNResource.java index 85f9753634..5fc80ab5c4 100644 --- a/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/URNResource.java +++ b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/URNResource.java @@ -82,8 +82,7 @@ public class URNResource extends AbstractCockpitPluginResource{ } catch (Exception e) { - - e.printStackTrace(); + msoLogger.error("Exception while executing query", e); } finally { try { r.close(); } catch (Exception e) { /* ignored */ } try { psData.close(); } catch (Exception e) { /* ignored */ } @@ -131,9 +130,8 @@ public class URNResource extends AbstractCockpitPluginResource{ } } catch (Exception e) - { - - e.printStackTrace(); + { + msoLogger.error("Exception while performing JNDI lookup", e); } return conn; @@ -175,8 +173,7 @@ public class URNResource extends AbstractCockpitPluginResource{ } catch (Exception e) { - - e.printStackTrace(); + msoLogger.error("Exception while executing query", e); } finally { try { psData.close(); } catch (Exception e) { /* ignored */ } try { conn.close(); } catch (Exception e) { /* ignored */ } @@ -199,8 +196,7 @@ public class URNResource extends AbstractCockpitPluginResource{ } catch (Exception e) { - - e.printStackTrace(); + msoLogger.error("Exception while executing query", e); } finally { try { psData.close(); } catch (Exception e) { /* ignored */ } try { conn.close(); } catch (Exception e) { /* ignored */ } -- cgit 1.2.3-korg