why not pass in the exception to the logging as well?