fix logging syntax