diff --git a/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.java b/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.java index 83f7e9b4a9..a5f3db72bd 100644 --- a/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.java +++ b/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.java @@ -167,7 +167,9 @@ public class CommandQueue { } } - public static void independentConnect(String reason, Callback callback) { + public void independentConnect(String reason, Callback callback) { + if (L.isEnabled(L.PUMPQUEUE)) + log.debug("Starting new queue"); CommandQueue tempCommandQueue = new CommandQueue(); tempCommandQueue.readStatus(reason, callback); } diff --git a/app/src/main/java/info/nightscout/androidaps/queue/QueueThread.java b/app/src/main/java/info/nightscout/androidaps/queue/QueueThread.java index c8b2574974..1de60240d7 100644 --- a/app/src/main/java/info/nightscout/androidaps/queue/QueueThread.java +++ b/app/src/main/java/info/nightscout/androidaps/queue/QueueThread.java @@ -168,6 +168,8 @@ public class QueueThread extends Thread { } } finally { mWakeLock.release(); + if (L.isEnabled(L.PUMPQUEUE)) + log.debug("thread end"); } } }