mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-13 11:17:33 +01:00
Guard logging with LOG.isDebugEnabled()
This commit is contained in:
parent
4096e50681
commit
5a3990b9d2
@ -409,11 +409,13 @@ public final class BtLEQueue {
|
|||||||
@Override
|
@Override
|
||||||
public void onCharacteristicChanged(BluetoothGatt gatt,
|
public void onCharacteristicChanged(BluetoothGatt gatt,
|
||||||
BluetoothGattCharacteristic characteristic) {
|
BluetoothGattCharacteristic characteristic) {
|
||||||
String content = "";
|
if (LOG.isDebugEnabled()) {
|
||||||
for (byte b : characteristic.getValue()) {
|
String content = "";
|
||||||
content += String.format(" 0x%1x", b);
|
for (byte b : characteristic.getValue()) {
|
||||||
|
content += String.format(" 0x%1x", b);
|
||||||
|
}
|
||||||
|
LOG.debug("characteristic changed: " + characteristic.getUuid() + " value: " + content );
|
||||||
}
|
}
|
||||||
LOG.debug("characteristic changed: " + characteristic.getUuid() + " value: " + content );
|
|
||||||
if (!checkCorrectGattInstance(gatt, "characteristic changed")) {
|
if (!checkCorrectGattInstance(gatt, "characteristic changed")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user