Describe the bug
Spring cloud version : 4.0.0-SNAPSHOT
Spring cloud config client : ConfigServerConfigDataLoader debug level log is not working ConfigServerConfigDataLoader constructor should use DeferredLogFactory (see ConfigDataLoaders)
And i fixed it in #2063
Sample
My config client application.yml config is
spring:
config:
import:
- "configserver:http://localhost:8888"
logging:
level:
org.springframework.cloud.config.client.ConfigServerConfigDataLoader: debug
if constructor use
public ConfigServerConfigDataLoader(Log logger) {
this.logger = logger;
}
Then debug level is not working. It should be
public ConfigServerConfigDataLoader(DeferredLogFactory logFactory) {
this.logger = logFactory.getLog(getClass());
}
Reference : org.springframework.boot.context.config.ConfigDataLoaders
Comment From: ryanjbaxter
@ruansheng8 I saw you accidentally deleted the branch, can you open another PR, but this time submit it against the 3.1.x branch?