From 24fb08d1fcf9a84dc44c4068ebcf86d27e540c14 Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 1 Aug 2005 10:02:44 +0000 Subject: [PATCH] Improve cron thread log output --- src/helma/framework/core/Application.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/helma/framework/core/Application.java b/src/helma/framework/core/Application.java index 9a0d0177..b911f9e7 100644 --- a/src/helma/framework/core/Application.java +++ b/src/helma/framework/core/Application.java @@ -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 + "]"; + } } }