code: private function logWarning(OutputInterface $output, ProgressBar $progress, $message)
      {
          $progress->clear();
          $this->logger->warning($message);
          $progress->display();
      }
docs: Log warning while progress helper is running.
  
  @param \Symfony\Component\Console\Output\OutputInterface $output
  @param \Symfony\Component\Console\Helper\ProgressBar $progress
  @param $message