If no ErrorHandler is available, errors will be logged at WARN level (INT-138).

This commit is contained in:
Mark Fisher
2008-04-16 18:47:12 +00:00
parent 7edfc96f5e
commit 9710edaa3c

View File

@@ -146,6 +146,9 @@ public class SimpleMessagingTaskScheduler extends AbstractMessagingTaskScheduler
if (errorHandler != null) {
errorHandler.handle(t);
}
else if (logger.isWarnEnabled()) {
logger.warn("error occurred in task but no 'errorHandler' is available", t);
}
}
if (this.shouldRepeat) {
MessagingTaskRunner runner = new MessagingTaskRunner(this.task);