Improve cron thread log output
This commit is contained in:
parent
7218ddd4da
commit
24fb08d1fc
1 changed files with 7 additions and 1 deletions
|
@ -1493,7 +1493,9 @@ public final class Application implements IPathElement, Runnable {
|
|||
CronJob.sort(jobs);
|
||||
|
||||
logEvent("Running cron jobs: " + jobs);
|
||||
logEvent("Cron jobs still running from last minute: " + activeCronJobs);
|
||||
if (!activeCronJobs.isEmpty()) {
|
||||
logEvent("Cron jobs still running from last minute: " + activeCronJobs);
|
||||
}
|
||||
|
||||
for (Iterator i = jobs.iterator(); i.hasNext();) {
|
||||
CronJob job = (CronJob) i.next();
|
||||
|
@ -1959,5 +1961,9 @@ public final class Application implements IPathElement, Runnable {
|
|||
activeCronJobs.remove(job.getName());
|
||||
}
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "CronRunner[" + job + "]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue