From 3a13f8d241f3e783877afb1951a7f3485f6e4ef4 Mon Sep 17 00:00:00 2001 From: Soumendu Sekhar Acharya Date: Tue, 6 Feb 2018 19:06:57 +0530 Subject: sonar critical for Exception Handling Log this exception Sonar Link: https://sonar.onap.org/component_issues/index?id=org.onap.dmaap.messagerouter.mirroragent%3AdmaapMMAgent#resolved=false|severities=CRITICAL|assignees=Soumendu Location: src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java Line No-444 Change-Id: Ibc26d86578a7d819dbf1138746fe3168cadf2f03 Issue-ID: DMAAP-241 Signed-off-by: Soumendu Sekhar Acharya --- src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java index 8f189b3..cf49094 100644 --- a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java +++ b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java @@ -446,7 +446,7 @@ public class MirrorMakerAgent { Thread.currentThread().interrupt(); } } catch (IOException ex) { - ex.printStackTrace(); + logger.error(" IOException Occered " + ex); } finally { if (out != null) { try { -- cgit 1.2.3-korg From cafa251341a017fa619aaf1a34b18c83189b1fe9 Mon Sep 17 00:00:00 2001 From: Soumendu Sekhar Acharya Date: Tue, 6 Feb 2018 19:41:24 +0530 Subject: sonar critical for Exception Handling Log this exception Sonar Link: https://sonar.onap.org/component_issues/index?id=org.onap.dmaap.messagerouter.mirroragent%3AdmaapMMAgent#resolved=false|severities=CRITICAL|assignees=Soumendu Location: src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java Line No-450 Change-Id: I38dad0528231f124856af864425ccf9b5e01c636 Issue-ID: DMAAP-242 Signed-off-by: Soumendu Sekhar Acharya --- src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java index cf49094..cf395a8 100644 --- a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java +++ b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java @@ -452,7 +452,7 @@ public class MirrorMakerAgent { try { out.close(); } catch (IOException e) { - e.printStackTrace(); + logger.error(" IOException Occered " + e); } } } -- cgit 1.2.3-korg