From 7025d021f56b7267a733e9d33b2d807ec000734d Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Fri, 14 Sep 2018 09:06:03 +0200 Subject: [PATCH] Insight logging --- .../androidaps/plugins/PumpInsight/InsightPlugin.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/InsightPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/InsightPlugin.java index 972de58f73..c72da31fdf 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/InsightPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/InsightPlugin.java @@ -573,7 +573,7 @@ public class InsightPlugin extends PluginBase implements PumpInterface, Constrai @Override public PumpEnactResult cancelTempBasal(boolean enforceNew) { if (L.isEnabled(L.PUMP)) - log.debug("Cancel TBR"); + log.debug("Cancel TBR called"); try { cancelExtendedBolus(); @@ -581,7 +581,6 @@ public class InsightPlugin extends PluginBase implements PumpInterface, Constrai realTBRCancel(); SystemClock.sleep(1100); // to be sure db records are at least 1 sec off (for NS) updateGui(); - if (L.isEnabled(L.PUMP)) log.debug("Canceling temp basal"); connector.requestHistorySync(5000); connector.tryToGetPumpStatusAgain(); return new PumpEnactResult().success(true).enacted(true).isTempCancel(true); @@ -619,8 +618,6 @@ public class InsightPlugin extends PluginBase implements PumpInterface, Constrai updateGui(); connector.requestHistorySync(30000); connector.tryToGetPumpStatusAgain(); - if (L.isEnabled(L.PUMP)) - log.debug("Setting extended bolus: " + insulin + " mins:" + durationInMinutes); return new PumpEnactResult().success(true).enacted(true).duration(durationInMinutes).bolusDelivered(insulin); } catch (Exception e) { return pumpEnactFailure(); @@ -630,7 +627,7 @@ public class InsightPlugin extends PluginBase implements PumpInterface, Constrai @Override public PumpEnactResult cancelExtendedBolus() { if (L.isEnabled(L.PUMP)) - log.debug("Cancel Extended bolus"); + log.debug("Cancel Extended bolus called"); Integer bolusId = null; @@ -641,7 +638,6 @@ public class InsightPlugin extends PluginBase implements PumpInterface, Constrai exStop.source = Source.USER; TreatmentsPlugin.getPlugin().addToHistoryExtendedBolus(exStop); } - if (L.isEnabled(L.PUMP)) log.debug("Cancel extended bolus:"); if (bolusId != null) connector.requestHistorySync(5000); connector.tryToGetPumpStatusAgain(); updateGui();