assert that logger.exception was not called