Log bolus amount when saving to DB failed.
This commit is contained in:
parent
5b21844423
commit
a861afa208
|
@ -669,6 +669,7 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
||||||
Answers.getInstance().logCustom(new CustomEvent("ComboBolusToDbError")
|
Answers.getInstance().logCustom(new CustomEvent("ComboBolusToDbError")
|
||||||
.putCustomAttribute("buildversion", BuildConfig.BUILDVERSION)
|
.putCustomAttribute("buildversion", BuildConfig.BUILDVERSION)
|
||||||
.putCustomAttribute("version", BuildConfig.VERSION)
|
.putCustomAttribute("version", BuildConfig.VERSION)
|
||||||
|
.putCustomAttribute("bolus", String.valueOf(lastPumpBolus.amount))
|
||||||
.putCustomAttribute("issue", "record with same timestamp existed and was overridden"));
|
.putCustomAttribute("issue", "record with same timestamp existed and was overridden"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -680,6 +681,7 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
||||||
Answers.getInstance().logCustom(new CustomEvent("ComboBolusToDbError")
|
Answers.getInstance().logCustom(new CustomEvent("ComboBolusToDbError")
|
||||||
.putCustomAttribute("buildversion", BuildConfig.BUILDVERSION)
|
.putCustomAttribute("buildversion", BuildConfig.BUILDVERSION)
|
||||||
.putCustomAttribute("version", BuildConfig.VERSION)
|
.putCustomAttribute("version", BuildConfig.VERSION)
|
||||||
|
.putCustomAttribute("bolus", String.valueOf(lastPumpBolus.amount))
|
||||||
.putCustomAttribute("issue", "adding record caused exception"));
|
.putCustomAttribute("issue", "adding record caused exception"));
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue