Browse Source

AbstractBeanFactory logs bean creation exception on FactoryBean type check at warn level

Issue: SPR-12397
pull/692/head
Juergen Hoeller 10 years ago
parent
commit
db2601d6e2
  1. 4
      spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java

4
spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java

@ -1420,8 +1420,8 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp @@ -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;

Loading…
Cancel
Save