summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>2018-02-09 09:21:45 +0530
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>2018-02-09 09:21:45 +0530
commit19587f9b9221f1e614fd527f1f0811082adf77d4 (patch)
tree7633c7750f3ba7c8e3cbdabfc60d385910659549 /src/main
parentecb2eedd7c6af9514414f7e04ea772edd0596e30 (diff)
sonar critical for Exception handling
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>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/att/nsa/dmaapMMAgent/utils/MirrorMakerProcessHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/dmaapMMAgent/utils/MirrorMakerProcessHandler.java b/src/main/java/com/att/nsa/dmaapMMAgent/utils/MirrorMakerProcessHandler.java
index 36d18eb..e7e49d4 100644
--- a/src/main/java/com/att/nsa/dmaapMMAgent/utils/MirrorMakerProcessHandler.java
+++ b/src/main/java/com/att/nsa/dmaapMMAgent/utils/MirrorMakerProcessHandler.java
@@ -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());
}
}