Fixed log.warning on exceptions.