Skip to content

Commit 90af2d5

Browse files
committed
Log delegate service initialization at debug level (instead of info)
Closes gh-26810
1 parent 5f5cd8a commit 90af2d5

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

spring-context-support/src/main/java/org/springframework/cache/ehcache/EhCacheManagerFactoryBean.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -130,8 +130,8 @@ public void setShared(boolean shared) {
130130

131131
@Override
132132
public void afterPropertiesSet() throws CacheException {
133-
if (logger.isInfoEnabled()) {
134-
logger.info("Initializing EhCache CacheManager" +
133+
if (logger.isDebugEnabled()) {
134+
logger.debug("Initializing EhCache CacheManager" +
135135
(this.cacheManagerName != null ? " '" + this.cacheManagerName + "'" : ""));
136136
}
137137

@@ -188,8 +188,8 @@ public boolean isSingleton() {
188188
@Override
189189
public void destroy() {
190190
if (this.cacheManager != null && this.locallyManaged) {
191-
if (logger.isInfoEnabled()) {
192-
logger.info("Shutting down EhCache CacheManager" +
191+
if (logger.isDebugEnabled()) {
192+
logger.debug("Shutting down EhCache CacheManager" +
193193
(this.cacheManagerName != null ? " '" + this.cacheManagerName + "'" : ""));
194194
}
195195
this.cacheManager.shutdown();

spring-context/src/main/java/org/springframework/scheduling/concurrent/ExecutorConfigurationSupport.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -177,8 +177,8 @@ public void afterPropertiesSet() {
177177
* Set up the ExecutorService.
178178
*/
179179
public void initialize() {
180-
if (logger.isInfoEnabled()) {
181-
logger.info("Initializing ExecutorService" + (this.beanName != null ? " '" + this.beanName + "'" : ""));
180+
if (logger.isDebugEnabled()) {
181+
logger.debug("Initializing ExecutorService" + (this.beanName != null ? " '" + this.beanName + "'" : ""));
182182
}
183183
if (!this.threadNamePrefixSet && this.beanName != null) {
184184
setThreadNamePrefix(this.beanName + "-");
@@ -214,8 +214,8 @@ public void destroy() {
214214
* @see java.util.concurrent.ExecutorService#shutdownNow()
215215
*/
216216
public void shutdown() {
217-
if (logger.isInfoEnabled()) {
218-
logger.info("Shutting down ExecutorService" + (this.beanName != null ? " '" + this.beanName + "'" : ""));
217+
if (logger.isDebugEnabled()) {
218+
logger.debug("Shutting down ExecutorService" + (this.beanName != null ? " '" + this.beanName + "'" : ""));
219219
}
220220
if (this.executor != null) {
221221
if (this.waitForTasksToCompleteOnShutdown) {

0 commit comments

Comments
 (0)