Updated log levels
This commit is contained in:
parent
84febcdf95
commit
b68dbaf15e
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue