log with the exception