really fix logging