sonar critical for Exception handling 65/30965/1
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Fri, 9 Feb 2018 03:51:45 +0000 (09:21 +0530)
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Fri, 9 Feb 2018 03:51:45 +0000 (09:21 +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- 94

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

index 36d18eb..e7e49d4 100644 (file)
@@ -92,7 +92,7 @@ public class MirrorMakerProcessHandler {
 
                        logger.info("Mirror Maker " + agentname + " Stopped");
                } catch (Exception e) {
-                       e.printStackTrace();
+                       logger.error("Error at stopMirrorMaker method:" + e.getMessage());
                }
 
        }

© 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