              with open(state_dir, 'rb') as fp:
                  state = ser.unmarshal(fp.read().decode('utf-8'))
                  self._epoch_no = state['epoch_no']
          except IOError as e:
              print('Error loading training info:', e.strerror)
              self._epoch_no = 0
          except JSONDecodeError as e:
              print('Error loading training info:', e.msg)
              self._epoch_no = 0                         
  
 
</s> remove             print('Error loading training info:', e.strerror)
 </s> add             logger.warning('Error loading training info: %s', str(e.strerror))
 </s> remove             print('Error loading training info:', e.msg)
            self._epoch_no = 0                         
 </s> add             logger.warning('Error loading training info: %s', str(e.msg))
            self._epoch_no = 0 </s> remove             print('Error loading training info:', e.msg)
            self._epoch_no = 0   
        
        (face_A,face_B) = (hdf['decoder_AH5'], hdf['decoder_BH5']) if not swapped else (hdf['decoder_BH5'], hdf['decoder_AH5'])                
 </s> add             logger.warning('Error loading training info: %s', str(e.msg))
            self._epoch_no = 0

        (face_A,face_B) = (hdf['decoder_AH5'], hdf['decoder_BH5']) if not swapped else (hdf['decoder_BH5'], hdf['decoder_AH5'])
 </s> remove             print('Failed loading training data:', str(e))            
      
 </s> add             logger.warning('Error loading training info: %s', str(e))
 </s> remove             print('Failed loading training data:', e.strerror)            
 </s> add             logger.warning('Error loading training info: %s', str(e.strerror))
            logger.warning('Error loading training info: %s', str(e.strerror))
              with open(state_dir, 'rb') as fp:
                  state = ser.unmarshal(fp.read().decode('utf-8'))
                  self._epoch_no = state['epoch_no']
          except IOError as e:
            logger.warning('Error loading training info: %s', str(e.strerror))
              self._epoch_no = 0
          except JSONDecodeError as e:
              print('Error loading training info:', e.msg)
              self._epoch_no = 0                         
  
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 
plugins/model/Model_OriginalHighRes/Model.py