I think 

LOG.error("your log message", ioe);

would do what these 2 lines are doing.