From a861afa208759b3b6dbd257de1adf8a1d4ed5594 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Mon, 5 Feb 2018 23:19:43 +0100 Subject: [PATCH] Log bolus amount when saving to DB failed. --- .../nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java index a646d00af7..372049fedf 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java @@ -669,6 +669,7 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf Answers.getInstance().logCustom(new CustomEvent("ComboBolusToDbError") .putCustomAttribute("buildversion", BuildConfig.BUILDVERSION) .putCustomAttribute("version", BuildConfig.VERSION) + .putCustomAttribute("bolus", String.valueOf(lastPumpBolus.amount)) .putCustomAttribute("issue", "record with same timestamp existed and was overridden")); return false; } @@ -680,6 +681,7 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf Answers.getInstance().logCustom(new CustomEvent("ComboBolusToDbError") .putCustomAttribute("buildversion", BuildConfig.BUILDVERSION) .putCustomAttribute("version", BuildConfig.VERSION) + .putCustomAttribute("bolus", String.valueOf(lastPumpBolus.amount)) .putCustomAttribute("issue", "adding record caused exception")); } return false;