Browse Source

Turn down logging in DefaultSingletonBeanRegistry

Reduce INFO level destroy logging to DEBUG

Issue: SPR-10758
pull/325/head
Phillip Webb 13 years ago
parent
commit
1678eaaed0
  1. 4
      spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultSingletonBeanRegistry.java

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

@ -448,8 +448,8 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements @@ -448,8 +448,8 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
}
public void destroySingletons() {
if (logger.isInfoEnabled()) {
logger.info("Destroying singletons in " + this);
if (logger.isDebugEnabled()) {
logger.debug("Destroying singletons in " + this);
}
synchronized (this.singletonObjects) {
this.singletonsCurrentlyInDestruction = true;

Loading…
Cancel
Save