sonar critical for Exception handling 63/30963/1
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Fri, 9 Feb 2018 03:47:08 +0000 (09:17 +0530)
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Fri, 9 Feb 2018 03:47:08 +0000 (09:17 +0530)
Use a logger to log this exception
Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.onap.dmaap.messagerouter.mirroragent%3AdmaapMMAgent#severities=CRITICAL|assignees=soumendu
Location:
src/main/java/com/att/nsa/dmaapMMAgent/utils/MirrorMakerProcessHandler.java
Line No- 62

Change-Id: Ia84bbe2820f823da22d75783d6697eba317181f5
Issue-ID: DMAAP-281
Signed-off-by: Soumendu Sekhar Acharya <sa00498080@techmahindra.com>
src/main/java/com/att/nsa/dmaapMMAgent/utils/MirrorMakerProcessHandler.java

index 2a1bc7d..36d18eb 100644 (file)
@@ -60,7 +60,7 @@ public class MirrorMakerProcessHandler {
                                }
                        }
                } catch (Exception e) {
-                       e.printStackTrace();
+                       logger.error("Error at checkMirrorMakerProcess method:" + e.getMessage());
                }
                return false;
        }

© 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