Some more logging improvelets

master
cpfeiffer 2015-09-09 23:39:57 +02:00
parent 22a9ff1819
commit c23905070c
3 changed files with 7 additions and 1 deletions

View File

@ -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;
}

View File

@ -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;
}
};

View File

@ -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);
}
}