From 16096c2eafd7e0b8cd5ea88065f6da3c392d3d99 Mon Sep 17 00:00:00 2001 From: Soumendu Sekhar Acharya Date: Tue, 6 Feb 2018 11:08:02 +0530 Subject: sonar critical for Exception Handling Logged the Exception Sonar Link: https://sonar.onap.org/component_issues/index?id=org.onap.dmaap.messagerouter.mirroragent%3AdmaapMMAgent#resolved=false|severities=CRITICAL|assignees=Soumendu Location: src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java Line No-283 Change-Id: Ib8da04a35c062cb49e5030ab286fc9e13c3fbc89 Issue-ID: DMAAP-234 Signed-off-by: Soumendu Sekhar Acharya --- src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/com') diff --git a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java index 7e28f52..c175f5b 100644 --- a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java +++ b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java @@ -284,6 +284,7 @@ public class MirrorMakerAgent { return response; } catch (Exception e) { + logger.error(" Exception Occered " + e); return "ERROR:" + e.getLocalizedMessage(); } } -- cgit 1.2.3-korg