summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>2018-02-09 09:25:10 +0530
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>2018-02-09 09:25:10 +0530
commit847cb247ddc4e05f7e1bd93b6a3529657afaeabf (patch)
tree2df1ff0ecce0603ca975225888bc2cf58845bce9 /src/main/java
parent19587f9b9221f1e614fd527f1f0811082adf77d4 (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- 121 Change-Id: Ib0a9e0fb8868c1fdd0b878dc159ce4cfa1f81d36 Issue-ID: DMAAP-283 Signed-off-by: Soumendu Sekhar Acharya <sa00498080@techmahindra.com>
Diffstat (limited to 'src/main/java')
-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 e7e49d4..80a47af 100644
--- a/src/main/java/com/att/nsa/dmaapMMAgent/utils/MirrorMakerProcessHandler.java
+++ b/src/main/java/com/att/nsa/dmaapMMAgent/utils/MirrorMakerProcessHandler.java
@@ -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();