def muteLogLoading(mute):
 if (not mute):
  log_loading.setLevel(logging.WARNING)
 else:
  log_loading.setLevel(logging.CRITICAL)

def muteLogLoading ( mute ) : if ( not mute ) : log_loading . setLevel ( logging . WARNING ) else : log_loading . setLevel ( logging . CRITICAL )
this mutes the log loading: used when a class is loaded several times .