              while not queue.empty():
                  queue.get(True, 1)
              queue.put("EOF")
  
      def debug_monitor(self, update_secs=2):
          """ Debug tool for monitoring queues """
          thread = threading.Thread(target=self.debug_queue_sizes,
                                    args=(update_secs, ))
          thread.daemon = True
 
</s> remove                 queue.get()
 </s> add                 queue.get(True, 1) </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) </s> remove         """ Clear all queues and send EOF
 </s> add         """ Set shutdown event, clear and send EOF to all queues </s> remove         for _ in range(self.thread_count):
            thread = threading.Thread(target=target, args=args, kwargs=kwargs)
            thread.daemon = True
 </s> add         logger.debug("Starting thread(s): '%s'", self._name)
        for idx in range(self._thread_count):
            name = "{}_{}".format(self._name, idx)
            logger.debug("Starting thread %s of %s: '%s'",
                         idx + 1, self._thread_count, name)
            thread = FSThread(name=name,
                              target=self._target,
                              args=self._args,
                              kwargs=self._kwargs)
            thread.daemon = self.daemon </s> remove             self.threads.append(thread)
 </s> add             self._threads.append(thread)
        logger.debug("Started all threads '%s': %s", self._name, len(self._threads))
        logger.debug("QueueManager terminated all queues")
              while not queue.empty():
                  queue.get(True, 1)
              queue.put("EOF")
        logger.debug("QueueManager terminated all queues")
  
      def debug_monitor(self, update_secs=2):
          """ Debug tool for monitoring queues """
          thread = threading.Thread(target=self.debug_queue_sizes,
                                    args=(update_secs, ))
          thread.daemon = True
keep keep add keep 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