Print name of reaction instead of the reaction itself.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 6 Jan 2013 23:51:05 +0000 (00:51 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 6 Jan 2013 23:51:05 +0000 (00:51 +0100)
src/main/java/net/pterodactylus/reactor/engine/Engine.java

index 2825b54..79ea482 100644 (file)
@@ -125,7 +125,7 @@ public class Engine extends AbstractExecutionThreadService {
                                reactionName = nextReactions.get(nextReactions.firstKey()).getLeft();
                                nextReaction = nextReactions.get(nextReactions.firstKey()).getRight();
                        }
-                       logger.debug(String.format("Next Reaction: %s.", nextReaction));
+                       logger.debug(String.format("Next Reaction: %s.", reactionName));
 
                        /* wait until the next reaction has to run. */
                        net.pterodactylus.reactor.State lastState = stateManager.loadLastState(reactionName);