From d0d3e46e03dea7b18d9ea18003f16abb34c1cf0e Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sat, 22 Jul 2017 00:44:53 +0200 Subject: [PATCH] Log exception when automatically retrying command. --- .../nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 f64c3da353..904f9721fc 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 @@ -391,7 +391,7 @@ public class ComboPlugin implements PluginBase, PumpInterface { CommandResult commandResult = ruffyScripter.runCommand(command); if (commandResult.exception != null) { - log.error("CommandResult has exception, rebinding ruffy service"); + log.error("CommandResult has exception, rebinding ruffy service", commandResult.exception); unbindRuffyService(); SystemClock.sleep(5000); @@ -403,7 +403,7 @@ public class ComboPlugin implements PluginBase, PumpInterface { } // retry command, but make sure it wasn't enacted and don't retry - // bolus commands (use is interacting with AAPS right now so he can + // bolus commands (user is interacting with AAPS right now so he can // deal with it and we don't want to deliver a bolus twice if (!commandResult.enacted && !(command instanceof BolusCommand)) { commandResult = ruffyScripter.runCommand(command) ;