sonar critical for Exception handling 67/30967/1
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Fri, 9 Feb 2018 03:55:10 +0000 (09:25 +0530)
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Fri, 9 Feb 2018 03:55:10 +0000 (09:25 +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- 121

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

index e7e49d4..80a47af 100644 (file)
@@ -119,7 +119,7 @@ public class MirrorMakerProcessHandler {
                                                                // System.out.println(line);
                                                        }
                                                } catch (Exception anExc) {
-                                                       anExc.printStackTrace();
+                                                       logger.error("Error at startMirrorMaker method:" + anExc.getMessage());
                                                }
                                        }
                                }.start();

© 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