Skip to content

Commit b012a43

Browse files
committed
Refine bean property logging details
Updates `ConfigurationPropertiesBeanContext` logging for clarity and verbosity control: renames log text from "Java Bean Property" to "Bean Property", and lowers the property-set change log from INFO to TRACE to reduce noisy runtime output.
1 parent 70f2836 commit b012a43

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

microsphere-spring-boot-core/src/main/java/io/microsphere/spring/boot/context/properties/bind/ConfigurationPropertiesBeanContext.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void setBean(Object bean) {
194194
for (Map.Entry<ConfigurationPropertyName, ConfigurationPropertiesBeanProperty> entry : this.beanProperties.entrySet()) {
195195
ConfigurationPropertyName propertyName = entry.getKey();
196196
ConfigurationPropertiesBeanProperty property = entry.getValue();
197-
beanInfo.add(format("Configuration Property Name : '{}' => Java Bean Property : {}", propertyName, property));
197+
beanInfo.add(format("Configuration Property Name : '{}' => Bean Property : {}", propertyName, property));
198198
}
199199
logger.trace("The ConfigurationPropertiesBeanContext is initialized, bean type : {} , prefix : '{}' , properties : {}",
200200
this.beanType, this.prefix, beanInfo);
@@ -456,8 +456,8 @@ boolean setPropertyValue(ConfigurationPropertiesBeanProperty beanProperty, Objec
456456
// Set the new value if it is different from the old value
457457
beanProperty.setValue(actualNewValue);
458458
changed = true;
459-
if (logger.isInfoEnabled()) {
460-
logger.info("Set property [path : '{}'] from '{}' to '{}'(actual : '{}') , Bean Property : {}",
459+
if (logger.isTraceEnabled()) {
460+
logger.trace("Set property [path : '{}'] from '{}' to '{}'(actual : '{}') , Bean Property : {}",
461461
beanProperty.getName(), oldValue, newValue, actualNewValue, beanProperty);
462462
}
463463
}

0 commit comments

Comments
 (0)