From ade4717bf9e099df0be7a53914f1c91d8575f463 Mon Sep 17 00:00:00 2001 From: Soumendu Sekhar Acharya Date: Fri, 2 Feb 2018 18:19:54 +0530 Subject: sonar critical for Exception handling Use a logger to log this exception https://sonar.onap.org/component_issues/index?id=org.onap.dmaap.messagerouter.mirroragent%3AdmaapMMAgent#assignees=soumendu|resolved=false Location: src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java Line No-493 Change-Id: Ic78e83c9455728754f941f500bdc7db905782907 Issue-ID: DMAAP-223 Signed-off-by: Soumendu Sekhar Acharya --- src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/com/att/nsa/dmaapMMAgent') diff --git a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java index d0237f1..8be0aa4 100644 --- a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java +++ b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java @@ -102,7 +102,7 @@ public class MirrorMakerAgent { try { input.close(); } catch (IOException e) { - logger.error("IOException" + e); + logger.error(" IOException occers " + e); } } } @@ -492,6 +492,7 @@ public class MirrorMakerAgent { out.close(); } catch (IOException e) { e.printStackTrace(); + logger.error("IOException occered " + e); } } } -- cgit 1.2.3-korg