fix logging statement