Author: hlship
Date: Thu Sep  8 20:34:08 2011
New Revision: 1166890

URL: http://svn.apache.org/viewvc?rev=1166890&view=rev
Log:
Change PeriodicExecutor debugging levels to be quieter

Modified:
    
tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/cron/PeriodicExecutorImpl.java

Modified: 
tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/cron/PeriodicExecutorImpl.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/cron/PeriodicExecutorImpl.java?rev=1166890&r1=1166889&r2=1166890&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/cron/PeriodicExecutorImpl.java
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/cron/PeriodicExecutorImpl.java
 Thu Sep  8 20:34:08 2011
@@ -127,7 +127,7 @@ public class PeriodicExecutorImpl implem
         }
 
         /**
-         * Starts execution of the job; this sets the executing flag, 
calculates the next excecution time,
+         * Starts execution of the job; this sets the executing flag, 
calculates the next execution time,
          * and uses the ParallelExecutor to run the job.
          */
         synchronized void start()
@@ -142,17 +142,17 @@ public class PeriodicExecutorImpl implem
 
             parallelExecutor.invoke(this);
 
-            if (logger.isDebugEnabled())
+            if (logger.isTraceEnabled())
             {
-                logger.debug(this + " sent for execution");
+                logger.trace(this + " sent for execution");
             }
         }
 
         synchronized void cleanupAfterExecution()
         {
-            if (logger.isDebugEnabled())
+            if (logger.isTraceEnabled())
             {
-                logger.debug(this + " execution complete");
+                logger.trace(this + " execution complete");
             }
 
             executing = false;
@@ -169,9 +169,9 @@ public class PeriodicExecutorImpl implem
 
         public Void invoke()
         {
-            if (logger.isInfoEnabled())
+            if (logger.isDebugEnabled())
             {
-                logger.info(String.format("Executing job #%d (%s)", jobId, 
name));
+                logger.debug(String.format("Executing job #%d (%s)", jobId, 
name));
             }
 
             try
@@ -247,9 +247,9 @@ public class PeriodicExecutorImpl implem
             {
                 long delay = nextExecution - System.currentTimeMillis();
 
-                if (logger.isDebugEnabled())
+                if (logger.isTraceEnabled())
                 {
-                    logger.debug(String.format("Sleeping for %,d ms", delay));
+                    logger.trace(String.format("Sleeping for %,d ms", delay));
                 }
 
                 if (delay > 0)
@@ -262,10 +262,7 @@ public class PeriodicExecutorImpl implem
                 // Ignored; the thread is interrupted() to shut it down,
                 // or to have it execute a new batch.
 
-                if (logger.isDebugEnabled())
-                {
-                    logger.debug("Interrupted");
-                }
+                logger.trace("Interrupted");
             }
         }
     }


Reply via email to