Add debug logging.
This commit is contained in:
parent
a2fad3293d
commit
821e31c1c3
1 changed files with 1 additions and 0 deletions
|
@ -368,6 +368,7 @@ public class RuffyScripter {
|
||||||
boolean movedOnce = false;
|
boolean movedOnce = false;
|
||||||
while (currentMenu.getType() != desiredMenu) {
|
while (currentMenu.getType() != desiredMenu) {
|
||||||
MenuType currentMenuType = currentMenu.getType();
|
MenuType currentMenuType = currentMenu.getType();
|
||||||
|
log.debug("Navigating to menu " + desiredMenu + ", currenty menu: " + currentMenuType);
|
||||||
if (movedOnce && currentMenuType == startedFrom) {
|
if (movedOnce && currentMenuType == startedFrom) {
|
||||||
throw new CommandException().message("Menu not found searching for " + desiredMenu
|
throw new CommandException().message("Menu not found searching for " + desiredMenu
|
||||||
+ ". Check menu settings on your pump to ensure it's not hidden.");
|
+ ". Check menu settings on your pump to ensure it's not hidden.");
|
||||||
|
|
Loading…
Reference in a new issue