fix logging debug