quintonm    2003/01/22 08:26:20

  Modified:    src/java/org/apache/turbine/services/schedule JobEntry.java
  Log:
  Added a simple log statement at the INOF level to log when the next scheduled 
execution of a job will occur.
  
  Revision  Changes    Path
  1.10      +8 -1      
jakarta-turbine-2/src/java/org/apache/turbine/services/schedule/JobEntry.java
  
  Index: JobEntry.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/schedule/JobEntry.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- JobEntry.java     20 Jan 2003 21:52:13 -0000      1.9
  +++ JobEntry.java     22 Jan 2003 16:26:20 -0000      1.10
  @@ -57,6 +57,9 @@
   import java.util.Calendar;
   import java.util.Date;
   
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
  +
   import org.apache.turbine.util.TurbineException;
   
   /**
  @@ -71,6 +74,8 @@
           extends BaseJobEntry
           implements Comparable
   {
  +    /** Logging */
  +    private static Log log = LogFactory.getLog(ScheduleService.LOGGER_NAME);
   
       /** indicates if job is currently running */
       private boolean jobIsActive = false;
  @@ -315,6 +320,8 @@
               default:
                   // Do nothing.
           }
  +
  +        log.info("Next runtime for task "+this.getTask()+" is 
"+this.getNextRunDate());
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to