sonar critical for Exception Handling 63/30463/2
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Tue, 6 Feb 2018 14:11:24 +0000 (19:41 +0530)
committerSoumendu Sekhar Acharya <SA00498080@techmahindra.com>
Wed, 7 Feb 2018 05:39:36 +0000 (05:39 +0000)
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 <sa00498080@techmahindra.com>
src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java

index cf49094..cf395a8 100644 (file)
@@ -452,7 +452,7 @@ public class MirrorMakerAgent {
                                        try {
                                                out.close();
                                        } catch (IOException e) {
-                                               e.printStackTrace();
+                                               logger.error(" IOException Occered " + e);
                                        }
                                }
                        }

© 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