Log exception when automatically retrying command.
This commit is contained in:
parent
7f185557f4
commit
d0d3e46e03
|
@ -391,7 +391,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
|
||||||
|
|
||||||
CommandResult commandResult = ruffyScripter.runCommand(command);
|
CommandResult commandResult = ruffyScripter.runCommand(command);
|
||||||
if (commandResult.exception != null) {
|
if (commandResult.exception != null) {
|
||||||
log.error("CommandResult has exception, rebinding ruffy service");
|
log.error("CommandResult has exception, rebinding ruffy service", commandResult.exception);
|
||||||
|
|
||||||
unbindRuffyService();
|
unbindRuffyService();
|
||||||
SystemClock.sleep(5000);
|
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
|
// 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
|
// deal with it and we don't want to deliver a bolus twice
|
||||||
if (!commandResult.enacted && !(command instanceof BolusCommand)) {
|
if (!commandResult.enacted && !(command instanceof BolusCommand)) {
|
||||||
commandResult = ruffyScripter.runCommand(command) ;
|
commandResult = ruffyScripter.runCommand(command) ;
|
||||||
|
|
Loading…
Reference in a new issue