summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChandan Ghosh <cghosh12@in.ibm.com>2019-01-04 12:47:27 +0530
committerChandan Ghosh <cghosh12@in.ibm.com>2019-01-04 12:47:40 +0530
commit36c24531b60b2a0b909c2594f6f37741b1901ca7 (patch)
tree2011bf9532fd7d9c9f5a10fbeab4fea428e16b51 /src/main
parent08234869b6e0052f312a6bb04d9cd8df7f6c252e (diff)
Added logger for exception block
Added logger for exception block reported in sonar Issue-ID: DMAAP-927 Change-Id: Ib1e120888bc1b7b4c51b39da37f49cd83ef770e8 Signed-off-by: Chandan Ghosh <cghosh12@in.ibm.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/dmaap/mr/dmaapMMAgent/MirrorMakerAgent.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/onap/dmaap/mr/dmaapMMAgent/MirrorMakerAgent.java b/src/main/java/org/onap/dmaap/mr/dmaapMMAgent/MirrorMakerAgent.java
index 86a653d..23fd99f 100644
--- a/src/main/java/org/onap/dmaap/mr/dmaapMMAgent/MirrorMakerAgent.java
+++ b/src/main/java/org/onap/dmaap/mr/dmaapMMAgent/MirrorMakerAgent.java
@@ -111,7 +111,7 @@ public class MirrorMakerAgent {
try {
input.close();
} catch (IOException e) {
- e.printStackTrace();
+ logger.error("exception occured in checkStartup "+e);
}
}
}
@@ -128,7 +128,7 @@ public class MirrorMakerAgent {
try {
input.close();
} catch (IOException e) {
- e.printStackTrace();
+ logger.error("exception occured in checkStartup "+e);
}
}
}
@@ -176,7 +176,7 @@ public class MirrorMakerAgent {
prop.store(out, "");
} catch (Exception e) {
- e.printStackTrace();
+ logger.error("exception occured in checkPropertiesFile "+e);
}
} finally {
if (input != null) {
@@ -190,7 +190,7 @@ public class MirrorMakerAgent {
try {
out.close();
} catch (IOException e) {
- e.printStackTrace();
+ logger.error("exception occured in checkPropertiesFile "+e);
}
}
}