  
  def get_image_paths(directory, exclude=list(), debug=False):
      """ Return a list of images that reside in a folder """
      image_extensions = _image_extensions
      exclude_names = [os.path.basename(Path(x).stem[:Path(x).stem.rfind('_')] +
                                        Path(x).suffix) for x in exclude]
      dir_contents = list()
  
      if not os.path.exists(directory):
          directory = get_folder(directory)
  
 
</s> remove def get_image_paths(directory, exclude=list(), debug=False):
 </s> add def get_image_paths(directory): </s> remove             print("Input directory {} not found.".format(self.args.input_dir))
 </s> add             logger.error("Input directory %s not found.", self.args.input_dir)
  
  def get_image_paths(directory, exclude=list(), debug=False):
      """ Return a list of images that reside in a folder """
      image_extensions = _image_extensions


      dir_contents = list()
  
      if not os.path.exists(directory):
          directory = get_folder(directory)
  
keep keep keep keep 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