Log delegate service initialization at debug level (instead of info)
Closes gh-26810
This commit is contained in:
parent
5f5cd8a7c4
commit
90af2d5794
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2017 the original author or authors.
|
* Copyright 2002-2021 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -130,8 +130,8 @@ public class EhCacheManagerFactoryBean implements FactoryBean<CacheManager>, Ini
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void afterPropertiesSet() throws CacheException {
|
public void afterPropertiesSet() throws CacheException {
|
||||||
if (logger.isInfoEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.info("Initializing EhCache CacheManager" +
|
logger.debug("Initializing EhCache CacheManager" +
|
||||||
(this.cacheManagerName != null ? " '" + this.cacheManagerName + "'" : ""));
|
(this.cacheManagerName != null ? " '" + this.cacheManagerName + "'" : ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -188,8 +188,8 @@ public class EhCacheManagerFactoryBean implements FactoryBean<CacheManager>, Ini
|
||||||
@Override
|
@Override
|
||||||
public void destroy() {
|
public void destroy() {
|
||||||
if (this.cacheManager != null && this.locallyManaged) {
|
if (this.cacheManager != null && this.locallyManaged) {
|
||||||
if (logger.isInfoEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.info("Shutting down EhCache CacheManager" +
|
logger.debug("Shutting down EhCache CacheManager" +
|
||||||
(this.cacheManagerName != null ? " '" + this.cacheManagerName + "'" : ""));
|
(this.cacheManagerName != null ? " '" + this.cacheManagerName + "'" : ""));
|
||||||
}
|
}
|
||||||
this.cacheManager.shutdown();
|
this.cacheManager.shutdown();
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2020 the original author or authors.
|
* Copyright 2002-2021 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -177,8 +177,8 @@ public abstract class ExecutorConfigurationSupport extends CustomizableThreadFac
|
||||||
* Set up the ExecutorService.
|
* Set up the ExecutorService.
|
||||||
*/
|
*/
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
if (logger.isInfoEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.info("Initializing ExecutorService" + (this.beanName != null ? " '" + this.beanName + "'" : ""));
|
logger.debug("Initializing ExecutorService" + (this.beanName != null ? " '" + this.beanName + "'" : ""));
|
||||||
}
|
}
|
||||||
if (!this.threadNamePrefixSet && this.beanName != null) {
|
if (!this.threadNamePrefixSet && this.beanName != null) {
|
||||||
setThreadNamePrefix(this.beanName + "-");
|
setThreadNamePrefix(this.beanName + "-");
|
||||||
|
|
@ -214,8 +214,8 @@ public abstract class ExecutorConfigurationSupport extends CustomizableThreadFac
|
||||||
* @see java.util.concurrent.ExecutorService#shutdownNow()
|
* @see java.util.concurrent.ExecutorService#shutdownNow()
|
||||||
*/
|
*/
|
||||||
public void shutdown() {
|
public void shutdown() {
|
||||||
if (logger.isInfoEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.info("Shutting down ExecutorService" + (this.beanName != null ? " '" + this.beanName + "'" : ""));
|
logger.debug("Shutting down ExecutorService" + (this.beanName != null ? " '" + this.beanName + "'" : ""));
|
||||||
}
|
}
|
||||||
if (this.executor != null) {
|
if (this.executor != null) {
|
||||||
if (this.waitForTasksToCompleteOnShutdown) {
|
if (this.waitForTasksToCompleteOnShutdown) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue