X-Git-Url: https://gerrit.onap.org/r/gitweb?p=dmaap%2Fmessagerouter%2Fmirroragent.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fcom%2Fatt%2Fnsa%2FdmaapMMAgent%2FMirrorMakerAgent.java;h=d0237f123ffec3c7d5e135861325eb4c81ea3bf1;hp=070281c54b821d4885d75fe8e5190f89e322a5be;hb=adf340af7852891c7c89b146cf9a272e57ddd825;hpb=cc4d512cc63a3014e340e8b641b9f0eaecc62831 diff --git a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java index 070281c..d0237f1 100644 --- a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java +++ b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java @@ -103,7 +103,6 @@ public class MirrorMakerAgent { input.close(); } catch (IOException e) { logger.error("IOException" + e); - e.printStackTrace(); } } } @@ -116,14 +115,14 @@ public class MirrorMakerAgent { } logger.info("kakahome is set :" + kafkahome); } catch (IOException ex) { - logger.error(kafkahome + "/bin/kafka-run-class.sh not found. Make sure kafka home is set correctly"); + logger.error(kafkahome + "/bin/kafka-run-class.sh not found. Make sure kafka home is set correctly" + ex); return false; } finally { if (input != null) { try { input.close(); } catch (IOException e) { - e.printStackTrace(); + logger.error("IOException" + e); } } } @@ -182,6 +181,7 @@ public class MirrorMakerAgent { out.close(); } catch (IOException e) { e.printStackTrace(); + logger.error("IOException" + e); } } }