From 85b16f0f6dd66415009f688e7c1e24f4a4ae6fe8 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Fri, 11 Apr 2014 17:35:55 -0400 Subject: [PATCH] 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. --- .../integration/context/IntegrationContextUtils.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-integration-core/src/main/java/org/springframework/integration/context/IntegrationContextUtils.java b/spring-integration-core/src/main/java/org/springframework/integration/context/IntegrationContextUtils.java index a62bf39e1b..94d24114e7 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/context/IntegrationContextUtils.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/context/IntegrationContextUtils.java @@ -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) {