Add debug logging.

This commit is contained in:
Johannes Mockenhaupt 2017-07-20 13:08:27 +02:00
parent a2fad3293d
commit 821e31c1c3
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -368,6 +368,7 @@ public class RuffyScripter {
boolean movedOnce = false;
while (currentMenu.getType() != desiredMenu) {
MenuType currentMenuType = currentMenu.getType();
log.debug("Navigating to menu " + desiredMenu + ", currenty menu: " + currentMenuType);
if (movedOnce && currentMenuType == startedFrom) {
throw new CommandException().message("Menu not found searching for " + desiredMenu
+ ". Check menu settings on your pump to ensure it's not hidden.");