          outfile.write(sysinfo.full_info())
      return filename
  
  
  # Add a flag to logging.LogRecord to not strip formatting from particular records
  old_factory = logging.getLogRecordFactory()
  
  
  def faceswap_logrecord(*args, **kwargs):
      record = old_factory(*args, **kwargs)
      record.strip_spaces = True
      return record
  
 
</s> remove             logger.verbose("Resizing image from %sx%s to %s.",
                           width, height, "x".join(str(i) for i in dims))
 </s> add             logger.trace("Resizing image from %sx%s to %s.",
                         width, height, "x".join(str(i) for i in dims)) </s> remove     log_console = logging.StreamHandler(sys.stdout)
 </s> add     log_console = TqdmHandler(sys.stdout)
old_factory = logging.getLogRecordFactory()  # pylint: disable=invalid-name
          outfile.write(sysinfo.full_info())
      return filename
  
  
old_factory = logging.getLogRecordFactory()  # pylint: disable=invalid-name
old_factory = logging.getLogRecordFactory()  # pylint: disable=invalid-name
old_factory = logging.getLogRecordFactory()  # pylint: disable=invalid-name
old_factory = logging.getLogRecordFactory()  # pylint: disable=invalid-name
  def faceswap_logrecord(*args, **kwargs):
      record = old_factory(*args, **kwargs)
      record.strip_spaces = True
      return record
  
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Use tqdm.write for StreamLogger. Reduce extract resize loglevel. 
lib/logger.py