Reduce MBF Warning Logs to DEBUG

When the bean factory is not provided a WARN log was issued
because the message builder factory cannot be found.

Reduce the logs to DEBUG.
This commit is contained in:
Gary Russell
2014-04-11 17:35:55 -04:00
parent 96dc725539
commit 85b16f0f6d

View File

@@ -187,8 +187,8 @@ public abstract class IntegrationContextUtils {
IntegrationContextUtils.INTEGRATION_MESSAGE_BUILDER_FACTORY_BEAN_NAME, MessageBuilderFactory.class);
}
catch (Exception e) {
if (logger.isWarnEnabled()) {
logger.warn("No MessageBuilderFactory with name '"
if (logger.isDebugEnabled()) {
logger.debug("No MessageBuilderFactory with name '"
+ IntegrationContextUtils.INTEGRATION_MESSAGE_BUILDER_FACTORY_BEAN_NAME
+ "' found: " + e.getMessage()
+ ", using default.");
@@ -196,8 +196,8 @@ public abstract class IntegrationContextUtils {
}
}
else {
if (logger.isWarnEnabled()) {
logger.warn("No 'beanFactory' supplied; cannot find MessageBuilderFactory"
if (logger.isDebugEnabled()) {
logger.debug("No 'beanFactory' supplied; cannot find MessageBuilderFactory"
+ ", using default.");
}
if (fatalWhenNoBeanFactory) {