          try:
              for model in hdf.values():            
                  backup_file(model_dir, model)
          except NameError:
              print('backup functionality not available\n')       
              
          state_dir = os.path.join(model_dir, 'state_{version_str}_{ENCODER.value}.json'.format(**globals()))
          ser = lib.Serializer.get_serializer('json')
          try:
              with open(state_dir, 'wb') as fp:
                  state_json = ser.marshal({
 
</s> remove         
        print('saved model weights')
        
 </s> add 
        logger.info('saved model weights')

 </s> remove             print('Failed loading existing training data.')
            print(e)
            return False                            
 </s> add             logger.warning('Failed loading existing training data. Starting a fresh model: %s', self.model_dir)
            return False
 </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.strerror)
 </s> add             logger.warning('Error loading training info: %s', str(e.strerror))
 </s> remove         except Exception as e:
            print('Failed loading existing training data.')
            print(e)
 </s> add         except Exception:
            logger.warning('Failed loading existing training data. Starting a fresh model: %s', self.model_dir)
            logger.error('backup functionality not available\n')

          try:
              for model in hdf.values():            
                  backup_file(model_dir, model)
          except NameError:
            logger.error('backup functionality not available\n')

            logger.error('backup functionality not available\n')

          state_dir = os.path.join(model_dir, 'state_{version_str}_{ENCODER.value}.json'.format(**globals()))
          ser = lib.Serializer.get_serializer('json')
          try:
              with open(state_dir, 'wb') as fp:
                  state_json = ser.marshal({
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 
plugins/model/Model_OriginalHighRes/Model.py