summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>2018-02-09 09:17:08 +0530
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>2018-02-09 09:17:08 +0530
commitecb2eedd7c6af9514414f7e04ea772edd0596e30 (patch)
tree1e67cc4cc64203704b3dd04b1bfab270b932a726
parent3cc7451e248e499429d0adf286277308e047a6ff (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- 62 Change-Id: Ia84bbe2820f823da22d75783d6697eba317181f5 Issue-ID: DMAAP-281 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 2a1bc7d..36d18eb 100644
--- a/src/main/java/com/att/nsa/dmaapMMAgent/utils/MirrorMakerProcessHandler.java
+++ b/src/main/java/com/att/nsa/dmaapMMAgent/utils/MirrorMakerProcessHandler.java
@@ -60,7 +60,7 @@ public class MirrorMakerProcessHandler {
}
}
} catch (Exception e) {
- e.printStackTrace();
+ logger.error("Error at checkMirrorMakerProcess method:" + e.getMessage());
}
return false;
}