      def from_dlib_rect(self, d_rect, image=None):
          """ Set Bounding Box from a Dlib Rectangle """
          if not isinstance(d_rect, d_rectangle):
              raise ValueError("Supplied Bounding Box is not a dlib.rectangle.")
          self.x = d_rect.left()
          self.w = d_rect.right() - d_rect.left()
 
</s> remove         return d_rectangle(left, top, right, bottom)
 </s> add         retval = d_rectangle(left, top, right, bottom)
        logger.trace("Returning: %s", retval)
        return retval </s> remove                 if self.verbose:
                    print("{} is not a png. "
                          "Skipping".format(face["face_fullname"]))
 </s> add                 logger.verbose("'%s' is not a png. Skipping", face["face_fullname"])
        logger.trace("Creating from dlib_rectangle: %s", d_rect)
      def from_dlib_rect(self, d_rect, image=None):
          """ Set Bounding Box from a Dlib Rectangle """
        logger.trace("Creating from dlib_rectangle: %s", d_rect)
          if not isinstance(d_rect, d_rectangle):
              raise ValueError("Supplied Bounding Box is not a dlib.rectangle.")
          self.x = d_rect.left()
          self.w = d_rect.right() - d_rect.left()
keep add 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/faces_detect.py