          event = process.event
  
          for plugin in ("fan", "dlib"):
              aligner = PluginLoader.get_aligner(plugin)()
              process.in_process(aligner.align, **kwargs)
              # Wait for Aligner to take init
              # The first ever load of the model for FAN has reportedly taken
              # up to 3-4 minutes, hence high timeout.
              event.wait(300)
  
 
</s> remove             aligner = PluginLoader.get_aligner(plugin)(verbose=verbose)
            align_process.in_process(aligner.align, **a_kwargs)
 </s> add             aligner = PluginLoader.get_aligner(plugin)(loglevel=loglevel)
            align_process = SpawnProcess(aligner.run, **a_kwargs)
            a_event = align_process.event
            align_process.start() </s> remove 
        self.process_align.in_process(self.aligner.align, **kwargs)
 </s> add         self.process_align.start() </s> remove         process = SpawnProcess()
        event = process.event
 </s> add  </s> remove         self.process_align = SpawnProcess()
 </s> add         self.process_align = SpawnProcess(self.aligner.run, **kwargs) </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")
            process = SpawnProcess(aligner.run, **kwargs)
            event = process.event
            process.start()
          event = process.event
  
          for plugin in ("fan", "dlib"):
              aligner = PluginLoader.get_aligner(plugin)()
            process = SpawnProcess(aligner.run, **kwargs)
            event = process.event
            process.start()
              # Wait for Aligner to take init
              # The first ever load of the model for FAN has reportedly taken
              # up to 3-4 minutes, hence high timeout.
              event.wait(300)
  
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