Updated log levels

This commit is contained in:
Mark Qvist 2023-11-08 15:23:29 +01:00
parent 84febcdf95
commit b68dbaf15e

View File

@ -115,7 +115,7 @@ class AndroidBluetoothManager():
if self.bt_enabled(): if self.bt_enabled():
return self.bt_adapter.getDefaultAdapter().getBondedDevices() return self.bt_adapter.getDefaultAdapter().getBondedDevices()
else: else:
RNS.log("Could not query paired devices, Bluetooth is disabled", RNS.LOG_DEBUG) RNS.log("Could not query paired devices, Bluetooth is disabled", RNS.LOG_EXTREME)
return [] return []
def get_potential_devices(self): def get_potential_devices(self):
@ -167,8 +167,8 @@ class AndroidBluetoothManager():
raise IOError("The Bluetooth RFcomm socket could not be connected: "+str(e)) raise IOError("The Bluetooth RFcomm socket could not be connected: "+str(e))
except Exception as e: except Exception as e:
RNS.log("Could not create and connect Bluetooth RFcomm socket for "+str(device.getName())+" "+str(device.getAddress()), RNS.LOG_DEBUG) RNS.log("Could not create and connect Bluetooth RFcomm socket for "+str(device.getName())+" "+str(device.getAddress()), RNS.LOG_EXTREME)
RNS.log("The contained exception was: "+str(e), RNS.LOG_DEBUG) RNS.log("The contained exception was: "+str(e), RNS.LOG_EXTREME)
def close(self): def close(self):
if self.connected: if self.connected: