Some more logging improvelets
This commit is contained in:
parent
22a9ff1819
commit
c23905070c
|
@ -153,7 +153,7 @@ public class GBDevice implements Parcelable {
|
|||
if (mBusyTask != null) {
|
||||
LOG.warn("Attempt to mark device as busy with: " + task + ", but is already busy with: " + mBusyTask);
|
||||
}
|
||||
LOG.info("Mark device as busy: " + mBusyTask);
|
||||
LOG.info("Mark device as busy: " + task);
|
||||
mBusyTask = task;
|
||||
}
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ import java.util.concurrent.BlockingQueue;
|
|||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.LinkedBlockingQueue;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.GBApplication;
|
||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice.State;
|
||||
import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
|
||||
|
@ -444,6 +445,9 @@ public final class BtLEQueue {
|
|||
}
|
||||
|
||||
public void reset() {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("internal gatt callback set to null");
|
||||
}
|
||||
mTransactionGattCallback = null;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -597,6 +597,8 @@ public class MiBandSupport extends AbstractBTLEDeviceSupport {
|
|||
handleBatteryInfo(characteristic.getValue(), BluetoothGatt.GATT_SUCCESS);
|
||||
} else if (MiBandService.UUID_CHARACTERISTIC_NOTIFICATION.equals(characteristicUUID)) {
|
||||
handleNotificationNotif(characteristic.getValue());
|
||||
} else{
|
||||
LOG.info("Unhandled characteristic changed: " + characteristicUUID);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue