                         for face in self.faces.file_list_sorted
                         if face["frame_name"] == frame
                         and face["face_index"] == idx]
              if not mapping:
                  print("WARNING: No face image found "
                        "for frame '{}' at index '{}'".format(frame, idx))
              map_faces.extend(mapping)
          return map_faces
  
      def rename_faces(self, map_faces):
          """ Rename faces
 
</s> remove         return len(self.data.get(frame, list()))
 </s> add         retval = len(self.data.get(frame, list()))
        logger.trace(retval)
        return retval </s> remove         return self.count_faces_in_frame(frame) - 1
 </s> add         retval = self.count_faces_in_frame(frame) - 1
        logger.debug("Returning new face index: %s", retval)
        return retval
                logger.warning("No face image found for frame '%s' at index %s", frame, idx)
                         for face in self.faces.file_list_sorted
                         if face["frame_name"] == frame
                         and face["face_index"] == idx]
              if not mapping:
                logger.warning("No face image found for frame '%s' at index %s", frame, idx)
                logger.warning("No face image found for frame '%s' at index %s", frame, idx)
              map_faces.extend(mapping)
          return map_faces
  
      def rename_faces(self, map_faces):
          """ Rename faces
keep keep keep keep 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 
tools/lib_alignments/jobs.py