                  dst = os.path.join(output_dir, str(i), src_basename)
                  try:
                      process_file(src, dst, self.changes)
                  except FileNotFoundError as err:
                      print(err)
                      print('Failed to move {0} to {1}'.format(src, dst))
  
          if self.args.log_changes:
              self.write_to_log(self.changes)
  
      # Various helper methods
 
</s> remove                 print(err)
                print('fail to rename {}'.format(src))
 </s> add                 logger.error(err)
                logger.error('fail to rename %s', src) </s> remove                 print(err)
                print('fail to rename {}'.format(src))
 </s> add                 logger.error(err)
                logger.error('fail to rename %s', format(src)) </s> remove         print("Writing sort log to: {}".format(self.args.log_file_path))
 </s> add         logger.info("Writing sort log to: '%s'", self.args.log_file_path) </s> remove         if self.verbose:
            print("Renamed {} to {}".format(src, dst))
 </s> add         logger.verbose("Renamed '%s' to '%s'", src, dst) </s> remove             raise ValueError("Error inititalizing Aligner")

        try:
            err = None
            err = out_queue.get(True, 1)
        except QueueEmpty:
            pass

        if err:
            if isinstance(err, str):
                queue_manager.terminate_queues()
                print(err)
                exit(1)
            else:
                queue_manager.get_queue("detect").put(err)
 </s> add             raise ValueError("Error initializing Aligner")

        logger.debug("Launched Aligner")
                    logger.error(err)
                    logger.error("Failed to move '%s' to '%s'", src, dst)
                  dst = os.path.join(output_dir, str(i), src_basename)
                  try:
                      process_file(src, dst, self.changes)
                  except FileNotFoundError as err:
                    logger.error(err)
                    logger.error("Failed to move '%s' to '%s'", src, dst)
                    logger.error(err)
                    logger.error("Failed to move '%s' to '%s'", src, dst)
  
          if self.args.log_changes:
              self.write_to_log(self.changes)
  
      # Various helper methods
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 
tools/sort.py