summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDushyant Singh Thakur <dt00503496@techmahindra.com>2018-02-05 19:31:10 +0530
committerDushyant Singh Thakur <dt00503496@techmahindra.com>2018-02-05 19:31:10 +0530
commitee1dfd1e6eb368ea821e72ecd11b694d21719490 (patch)
tree5b642813ff01b14771c3e446101f0ca7d601ca81 /src
parent737e0f13a19b68e9d6d6d48b6df5395127c45f67 (diff)
sonar critical for error-handling
Used a logger to log the exception Sonar Link: https://sonar.onap.org/component_issues?id=org.onap.dmaap.messagerouter.mirroragent%3AdmaapMMAgent#assignees=dthakur Location: src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java Line No-175 Change-Id: I69afcf9e8f4f40c9054d52e56f9704d3b102412d Issue-ID: DMAAP-226 Signed-off-by: Dushyant Singh Thakur <dt00503496@techmahindra.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
index bd2a2a5..2fc712b 100644
--- a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
+++ b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
@@ -173,7 +173,7 @@ public class MirrorMakerAgent {
try {
input.close();
} catch (IOException e) {
- e.printStackTrace();
+ logger.error("Exception occurred is " +e);
}
}
if (out != null) {
@@ -361,7 +361,7 @@ public class MirrorMakerAgent {
}
} catch (Exception e) {
- e.printStackTrace();
+ logger.error("Exception is : " +e);
}
}