diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/config/PropertySourceBootstrapConfiguration.java b/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/config/PropertySourceBootstrapConfiguration.java index 1822e5bc2..43a0c1ed3 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/config/PropertySourceBootstrapConfiguration.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/config/PropertySourceBootstrapConfiguration.java @@ -23,6 +23,7 @@ import java.util.Map; import java.util.Set; import java.util.TreeSet; +import java.util.stream.Collectors; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -106,7 +107,10 @@ public void initialize(ConfigurableApplicationContext applicationContext) { sourceList.add(new SimpleBootstrapPropertySource(p)); } } - logger.info("Located property source: " + sourceList); + logger.info("Located property source. Property names: " + + sourceList.stream().map(PropertySource::getName).collect(Collectors.toList())); + logger.debug("Property values: " + + sourceList.stream().map(PropertySource::getSource).collect(Collectors.toList())); composite.addAll(sourceList); empty = false; }