added logging to assertion