summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>2018-02-09 09:33:39 +0530
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>2018-02-09 09:33:39 +0530
commitaef2781fa5a6825cdce29f4a68dc69e602a98a9f (patch)
treed27813d8968fd7b4cb36d0ff3a582a0ad935dde1
parent847cb247ddc4e05f7e1bd93b6a3529657afaeabf (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- 143 Change-Id: I1612b460cd6ead609ffadd7b621f26159a68e7d4 Issue-ID: DMAAP-284 Signed-off-by: Soumendu Sekhar Acharya <sa00498080@techmahindra.com>
-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 80a47af..dd1442e 100644
--- a/src/main/java/com/att/nsa/dmaapMMAgent/utils/MirrorMakerProcessHandler.java
+++ b/src/main/java/com/att/nsa/dmaapMMAgent/utils/MirrorMakerProcessHandler.java
@@ -141,7 +141,7 @@ public class MirrorMakerProcessHandler {
// System.out.println(line);
}
} catch (Exception anExc) {
- anExc.printStackTrace();
+ logger.error("Exception at startMirrorMaker method else part run method:" + anExc.getMessage());
}
}
}.start();