From 1678eaaed04c3b9557e26089ca7dd5952976a4b6 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 24 Jul 2013 13:49:07 -0700 Subject: [PATCH] Turn down logging in DefaultSingletonBeanRegistry Reduce INFO level destroy logging to DEBUG Issue: SPR-10758 --- .../beans/factory/support/DefaultSingletonBeanRegistry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultSingletonBeanRegistry.java b/spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultSingletonBeanRegistry.java index 450f11a5ce6..cb84792cb2b 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultSingletonBeanRegistry.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultSingletonBeanRegistry.java @@ -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;