mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Guard logging with LOG.isDebugEnabled()
This commit is contained in:
@@ -409,11 +409,13 @@ public final class BtLEQueue {
|
||||
@Override
|
||||
public void onCharacteristicChanged(BluetoothGatt gatt,
|
||||
BluetoothGattCharacteristic characteristic) {
|
||||
String content = "";
|
||||
for (byte b : characteristic.getValue()) {
|
||||
content += String.format(" 0x%1x", b);
|
||||
if (LOG.isDebugEnabled()) {
|
||||
String content = "";
|
||||
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")) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user