try {
input.close();
} catch (IOException e) {
- e.printStackTrace();
+ logger.error(" IOException occers " + 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);
}
}
}
out.close();
} catch (IOException e) {
e.printStackTrace();
+ logger.error("IOException" + e);
}
}
}
out.close();
} catch (IOException e) {
e.printStackTrace();
+ logger.error("IOException occered " + e);
}
}
}