Issue-ID: AAF-1032
Change-Id: Ic7a6f89de457bca7c3bdc4ea5a3e58cfe214e06c
Signed-off-by: Rachitha <racrama1@in.ibm.com>
try {
hostname = InetAddress.getLocalHost().getHostName();
} catch (UnknownHostException e) {
try {
hostname = InetAddress.getLocalHost().getHostName();
} catch (UnknownHostException e) {
- e.printStackTrace();
- env.warn().log("Unable to get hostname");
+ env.warn().log("Unable to get hostname : "+e.getMessage());
if(cluster!=null && !cluster.isClosed()) {
cluster.close();
}
if(cluster!=null && !cluster.isClosed()) {
cluster.close();
}
- e.printStackTrace(System.err);
+ env.warn().log(System.err);