OPEN - issue INT-496: Design success/failure notifications for source adapters

http://jira.springframework.org/browse/INT-496

Added logging of failed error subscribers
This commit is contained in:
Iwein Fuld
2008-12-15 15:59:28 +00:00
parent 17849dbdea
commit 783861945d

View File

@@ -34,6 +34,7 @@ import org.springframework.util.Assert;
* {@link MessageChannel}.
*
* @author Mark Fisher
* @author Iwein Fuld
*/
public class MessagePublishingErrorHandler implements ErrorHandler, BeanFactoryAware {
@@ -84,7 +85,8 @@ public class MessagePublishingErrorHandler implements ErrorHandler, BeanFactoryA
sent = errorChannel.send(new ErrorMessage(t));
}
}
catch (Throwable ignore) { // message will be logged only
catch (Throwable errorDeliveryError) { // message will be logged only
logger.error("Error message was not delivered, it will be dumped in the error log", errorDeliveryError);
}
}
if (!sent && logger.isErrorEnabled()) {