From 65dff31a2e34b14347f1c0311420463c367afd3d Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Tue, 12 Sep 2017 10:28:35 -0400 Subject: 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 --- .../src/main/java/org/onap/policy/common/sitemanager/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'site-manager/src/main/java/org') 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); } } } -- cgit 1.2.3-korg