sonar critical for Exception handling 53/30853/1
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Thu, 8 Feb 2018 11:54:50 +0000 (17:24 +0530)
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Thu, 8 Feb 2018 11:54:50 +0000 (17:24 +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-487

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

index cd571a9..77e4789 100644 (file)
@@ -494,7 +494,7 @@ public class MirrorMakerAgent {
                                        Thread.currentThread().interrupt();
                                }
                        } catch (IOException ex) {
-                               ex.printStackTrace();
+                               logger.error("Exception at updateWhiteList : " + ex);
                        } finally {
                                if (out != null) {
                                        try {

© 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