                      'epoch_no' : self.epoch_no
                       })
                  fp.write(state_json.encode('utf-8'))
          except IOError as e:
              print(e.strerror)                   
  
      @property
      def epoch_no(self):
          "Get current training epoch number"
          return self._epoch_no
 
</s> remove             print(e.strerror)                   
        
        print('\nsaving model weights', end='', flush=True)        
        
        from concurrent.futures import ThreadPoolExecutor, as_completed        
        
 </s> add             logger.error(e.strerror)

        logger.info('saving model weights')

        from concurrent.futures import ThreadPoolExecutor, as_completed
 </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.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   
        
        (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'])

            logger.error(e.strerror)

                      'epoch_no' : self.epoch_no
                       })
                  fp.write(state_json.encode('utf-8'))
          except IOError as e:
            logger.error(e.strerror)
  
      @property
      def epoch_no(self):
          "Get current training epoch number"
          return self._epoch_no
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_Original/AutoEncoder.py