out.close();
} catch (IOException e) {
e.printStackTrace();
- logger.error("IOException" + e);
+ logger.error("Exception is : "+e);
}
}
}
}
} catch (Exception e) {
- logger.error("Exception is : " +e);
+ 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);
}
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
+ logger.log(Level.WARN, "Interrupted!", e);
+ Thread.currentThread().interrupt();
}
} catch (IOException ex) {
- ex.printStackTrace();
+ logger.error("Exception at updateWhiteList : " + ex);
} finally {
if (out != null) {
try {