  
              if not event.is_set():
                  if plugin == "fan":
                      process.join()
                      print("Error initializing FAN. Trying Dlib")
                      continue
                  else:
                      raise ValueError("Error inititalizing Aligner")
              if plugin == "dlib":
                  return
 
</s> remove                     print("Error initializing FAN. Trying Dlib")
 </s> add                     logger.error("Error initializing FAN. Trying Dlib") </s> remove             print("Error initializing FAN. Trying Dlib")
 </s> add             logger.error("Error initializing FAN. Trying Dlib") </s> remove             print("Error initializing FAN. Trying Dlib")
 </s> add             logger.error("Error initializing FAN. Trying Dlib") </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") </s> remove         if not event:
 </s> add         if event is None:
            logger.debug("Launched Detector")
                    logger.error("Error initializing FAN. Trying Dlib")
  
              if not event.is_set():
                  if plugin == "fan":
                      process.join()
                    logger.error("Error initializing FAN. Trying Dlib")
                      continue
                  else:
                      raise ValueError("Error inititalizing Aligner")
              if plugin == "dlib":
                  return
keep keep keep keep 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