From ecb2eedd7c6af9514414f7e04ea772edd0596e30 Mon Sep 17 00:00:00 2001 From: Soumendu Sekhar Acharya Date: Fri, 9 Feb 2018 09:17:08 +0530 Subject: 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 --- .../java/com/att/nsa/dmaapMMAgent/utils/MirrorMakerProcessHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/att') 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; } -- cgit 1.2.3-korg