summaryrefslogtreecommitdiffstats
path: root/site-manager/src
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2017-09-12 10:28:35 -0400
committerPamela Dragosh <pdragosh@research.att.com>2017-09-12 12:46:46 -0400
commit65dff31a2e34b14347f1c0311420463c367afd3d (patch)
treebbd5dba3e1f48449c43085ef373e6ca235760bbc /site-manager/src
parent5827bc8c28d85f536ac2dff3c4e03ab83f0f8408 (diff)
Fix sonar critical associated with logging
Addressing the following sonar critical: Use a logger to log this exception Either log or rethrow this exception It does not hurt to simply do these as well as clean out lines of code that dump to Sys.out via e.printStackTrace. Issue-ID: POLICY-195 Change-Id: Ibc328094a0653b7baa04778298e4a69955105ea3 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'site-manager/src')
-rw-r--r--site-manager/src/main/java/org/onap/policy/common/sitemanager/Main.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/site-manager/src/main/java/org/onap/policy/common/sitemanager/Main.java b/site-manager/src/main/java/org/onap/policy/common/sitemanager/Main.java
index df843f3d..78be681f 100644
--- a/site-manager/src/main/java/org/onap/policy/common/sitemanager/Main.java
+++ b/site-manager/src/main/java/org/onap/policy/common/sitemanager/Main.java
@@ -298,7 +298,7 @@ public class Main
}
catch (Exception e)
{
- // ignore exception
+ System.err.println(e);
}
}
@@ -486,7 +486,7 @@ public class Main
}
catch (Exception e)
{
- // ignore any errors here
+ System.err.println(e);
}
}
}