fix logging in sampler task