Show what date and time we are waiting for, promote to log level INFO.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 6 Jan 2013 23:51:39 +0000 (00:51 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 6 Jan 2013 23:51:39 +0000 (00:51 +0100)
src/main/java/net/pterodactylus/reactor/engine/Engine.java

index 79ea482..fe57b33 100644 (file)
@@ -136,7 +136,7 @@ public class Engine extends AbstractExecutionThreadService {
                        if (waitTime > 0) {
                                synchronized (reactions) {
                                        try {
-                                               logger.debug(String.format("Waiting for %d milliseconds.", waitTime));
+                                               logger.info(String.format("Waiting until %tc.", lastStateTime + nextReaction.updateInterval()));
                                                reactions.wait(waitTime);
                                        } catch (InterruptedException ie1) {
                                                /* we’re looping! */