TW: Fixed TenantMappedClass bug caused by debug logging.