Remove assert and fix logging