fixed currently-in-creation check to apply with any log level (SPR-5996)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1829 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
75c3a21a3d
commit
4446156e2f
|
|
@ -151,11 +151,13 @@ public class BeanConfigurerSupport implements BeanFactoryAware, InitializingBean
|
||||||
Throwable rootCause = ex.getMostSpecificCause();
|
Throwable rootCause = ex.getMostSpecificCause();
|
||||||
if (rootCause instanceof BeanCurrentlyInCreationException) {
|
if (rootCause instanceof BeanCurrentlyInCreationException) {
|
||||||
BeanCreationException bce = (BeanCreationException) rootCause;
|
BeanCreationException bce = (BeanCreationException) rootCause;
|
||||||
if (logger.isDebugEnabled() && this.beanFactory.isCurrentlyInCreation(bce.getBeanName())) {
|
if (this.beanFactory.isCurrentlyInCreation(bce.getBeanName())) {
|
||||||
|
if (logger.isDebugEnabled()) {
|
||||||
logger.debug("Failed to create target bean '" + bce.getBeanName() +
|
logger.debug("Failed to create target bean '" + bce.getBeanName() +
|
||||||
"' while configuring object of type [" + beanInstance.getClass().getName() +
|
"' while configuring object of type [" + beanInstance.getClass().getName() +
|
||||||
"] - probably due to a circular reference. This is a common startup situation " +
|
"] - probably due to a circular reference. This is a common startup situation " +
|
||||||
"and usually not fatal. Proceeding without injection. Original exception: " + ex);
|
"and usually not fatal. Proceeding without injection. Original exception: " + ex);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue