From b0e8b887027d6b67c91cce046e7c0a769b0728b0 Mon Sep 17 00:00:00 2001 From: Soumendu Sekhar Acharya Date: Fri, 22 Dec 2017 08:54:16 +0530 Subject: sonar critical for Exception Handling Either log or rethrow 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-97 Change-Id: Id59fa4063869733d971d6ae4be9488385a0b2241 Issue-ID: DMAAP-194 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/java/com/att') diff --git a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java index cbe5307..9c74f72 100644 --- a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java +++ b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java @@ -95,7 +95,7 @@ public class MirrorMakerAgent { input = new FileInputStream(mmagenthome + "/etc/mmagent.config"); logger.info("mmagenthome is set :" + mmagenthome + " loading properties at /etc/mmagent.config"); } catch (IOException ex) { - logger.error(mmagenthome + "/etc/mmagent.config not found. Set -DMMAGENTHOME and check the config file"); + logger.error(mmagenthome + "/etc/mmagent.config not found. Set -DMMAGENTHOME and check the config file" + ex); return false; } finally { if (input != null) { -- cgit 1.2.3-korg