      dir_scanned = sorted(os.scandir(directory), key=lambda x: x.name)
      for chkfile in dir_scanned:
          if any([chkfile.name.lower().endswith(ext)
                  for ext in image_extensions]):
              if chkfile.name in exclude_names:
                  if debug:
                      print("Already processed %s" % chkfile.name)
                  continue
              else:
                  dir_contents.append(chkfile.path)
  
      return dir_contents
  
  
  def backup_file(directory, filename):
 
</s> remove             print("Skipping {} previously extracted frames".format(processed))
 </s> add             logger.info("Skipping previously extracted frames: %s", processed)
            logger.trace("Adding '%s' to image list", chkfile.path)
            dir_contents.append(chkfile.path)
      dir_scanned = sorted(os.scandir(directory), key=lambda x: x.name)
      for chkfile in dir_scanned:
          if any([chkfile.name.lower().endswith(ext)
                  for ext in image_extensions]):
            logger.trace("Adding '%s' to image list", chkfile.path)
            dir_contents.append(chkfile.path)
            logger.trace("Adding '%s' to image list", chkfile.path)
            dir_contents.append(chkfile.path)
            logger.trace("Adding '%s' to image list", chkfile.path)
            dir_contents.append(chkfile.path)
            logger.trace("Adding '%s' to image list", chkfile.path)
            dir_contents.append(chkfile.path)
            logger.trace("Adding '%s' to image list", chkfile.path)
            dir_contents.append(chkfile.path)
            logger.trace("Adding '%s' to image list", chkfile.path)
            dir_contents.append(chkfile.path)
  
      return dir_contents
  
  
  def backup_file(directory, filename):
keep keep keep keep replace replace replace replace replace replace keep keep keep keep keep
 Logging (#541)

* Convert prints to logger. Further logging improvements. Tidy  up

* Fix system verbosity. Allow SystemExit

* Fix reload extract bug

* Child Traceback handling

* Safer shutdown procedure

* Add shutdown event to queue manager

* landmarks_as_xy > property. GUI notes + linting. Aligner bugfix

* fix FaceFilter. Enable nFilter when no Filter is supplied

* Fix blurry face filter

* Continue on IO error. Better error handling

* Explicitly print stack trace tocrash log

* Windows Multiprocessing bugfix

* Add git info and conda version to crash log

* Windows/Anaconda mp bugfix

* Logging fixes for training 
lib/utils.py