sonar critical for Exception Handling 55/26755/1
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Fri, 22 Dec 2017 03:24:16 +0000 (08:54 +0530)
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Fri, 22 Dec 2017 03:24:16 +0000 (08:54 +0530)
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 <sa00498080@techmahindra.com>
src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java

index cbe5307..9c74f72 100644 (file)
@@ -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) {

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use