sonar critical for Exception handling 93/30293/1
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Mon, 5 Feb 2018 14:42:41 +0000 (20:12 +0530)
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Mon, 5 Feb 2018 14:42:41 +0000 (20:12 +0530)
Use a logger to log this exception
Sonar Link:
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-154

Change-Id: I68f5386662ef206790329369614d6ba061287cf0
Issue-ID: DMAAP-228
Signed-off-by: Soumendu Sekhar Acharya <sa00498080@techmahindra.com>
src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java

index 8be0aa4..1972d54 100644 (file)
@@ -152,6 +152,7 @@ public class MirrorMakerAgent {
                        }
                        input = new FileInputStream(mmagenthome + "/etc/" + agentName + propName + ".properties");
                } catch (IOException ex) {
+                       logger.error(" IOException will be handled " + ex);
                        try {
                                input = new FileInputStream(mmagenthome + "/etc/" + propName + ".properties");
                                Properties prop = new Properties();

© 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