Log exception when automatically retrying command.

This commit is contained in:
Johannes Mockenhaupt 2017-07-22 00:44:53 +02:00
parent 7f185557f4
commit d0d3e46e03
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -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) ;