sonar critical for Exception Handling 65/26765/1
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Fri, 22 Dec 2017 04:00:59 +0000 (09:30 +0530)
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Fri, 22 Dec 2017 04:00:59 +0000 (09:30 +0530)
Use a logger to 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-125

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

index 35a64c3..c97aae3 100644 (file)
@@ -123,7 +123,6 @@ public class MirrorMakerAgent {
                                        input.close();
                                } catch (IOException e) {
                                        logger.error("IOException" + e);
-                                       e.printStackTrace();
                                }
                        }
                }

© 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