From db2601d6e25a427368500ffcb8d274319222ec92 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 30 Oct 2014 21:52:54 +0100 Subject: [PATCH] AbstractBeanFactory logs bean creation exception on FactoryBean type check at warn level Issue: SPR-12397 --- .../beans/factory/support/AbstractBeanFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java b/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java index d0a8f18ac8..7802f04a1f 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java @@ -1420,8 +1420,8 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp } catch (BeanCreationException ex) { // Can only happen when getting a FactoryBean. - if (logger.isDebugEnabled()) { - logger.debug("Ignoring bean creation exception on FactoryBean type check: " + ex); + if (logger.isWarnEnabled()) { + logger.warn("Bean creation exception on FactoryBean type check: " + ex); } onSuppressedException(ex); return null;