log.exception should log the exception information.