      def get_queue(self, name, maxsize=0):
          """ Return a queue from the manager
              If it doesn't exist, create it """
          queue = self.queues.get(name, None)
          if queue:
              return queue
          self.add_queue(name, maxsize)
          return self.queues[name]
  
      def terminate_queues(self):
          """ Clear all queues and send EOF
              To be called if there is an error """
          for queue in self.queues.values():
 
</s> remove         """ Clear all queues and send EOF
 </s> add         """ Set shutdown event, clear and send EOF to all queues </s> remove         for queue in self.queues.values():
 </s> add         logger.debug("QueueManager terminating all queues")
        self.shutdown.set()
        for q_name, queue in self.queues.items():
            logger.debug("QueueManager terminating: '%s'", q_name)
        if not queue:
            self.add_queue(name, maxsize)
            queue = self.queues[name]
        logger.debug("QueueManager got: '%s'", name)
        return queue
      def get_queue(self, name, maxsize=0):
          """ Return a queue from the manager
              If it doesn't exist, create it """
          queue = self.queues.get(name, None)
        if not queue:
            self.add_queue(name, maxsize)
            queue = self.queues[name]
        logger.debug("QueueManager got: '%s'", name)
        return queue
        if not queue:
            self.add_queue(name, maxsize)
            queue = self.queues[name]
        logger.debug("QueueManager got: '%s'", name)
        return queue
        if not queue:
            self.add_queue(name, maxsize)
            queue = self.queues[name]
        logger.debug("QueueManager got: '%s'", name)
        return queue
        if not queue:
            self.add_queue(name, maxsize)
            queue = self.queues[name]
        logger.debug("QueueManager got: '%s'", name)
        return queue
  
      def terminate_queues(self):
          """ Clear all queues and send EOF
              To be called if there is an error """
          for queue in self.queues.values():
keep keep keep keep 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/queue_manager.py