From 511433500513e740742f68c69ea6599c88e86f9c Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 21 Aug 2018 19:53:59 +0200 Subject: [PATCH] more logs --- .../java/info/nightscout/androidaps/queue/CommandQueue.java | 4 +++- .../java/info/nightscout/androidaps/queue/QueueThread.java | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) 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"); } } }