try {
input.close();
} catch (IOException e) {
- e.printStackTrace();
+ logger.error("IOException" + e);
}
}
}
}
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);
}
}
}
prop.store(out, "");
} catch (Exception e) {
- e.printStackTrace();
+ logger.error("Exception at checkPropertiesFile " +e);
}
} finally {
if (input != null) {
try {
input.close();
} catch (IOException e) {
- e.printStackTrace();
+ logger.error("Exception occurred is " +e);
}
}
if (out != null) {
out.close();
} catch (IOException e) {
e.printStackTrace();
+ logger.error("Exception is : "+e);
}
}
}
}
} catch (Exception e) {
- e.printStackTrace();
+ logger.error("Exception at readAgentTopic : " + e);
}
}
} else if (exists == false && mirrorMakers == null) {
mirrorMakers = new ListMirrorMaker();
ArrayList<MirrorMaker> list = mirrorMakers.getListMirrorMaker();
- list = new ArrayList<MirrorMaker>();
+ list = new ArrayList();
list.add(newMirrorMaker);
mirrorMakers.setListMirrorMaker(list);
}