Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#7523] fix(config): avoid logging null value in ConfigEntry writes (#7526)

신동재e865084ab198
diff --git a/core/src/main/java/org/apache/gravitino/config/ConfigEntry.java b/core/src/main/java/org/apache/gravitino/config/ConfigEntry.java
index 8021ea447b..44196e3f07 100644
--- a/core/src/main/java/org/apache/gravitino/config/ConfigEntry.java
+++ b/core/src/main/java/org/apache/gravitino/config/ConfigEntry.java
@@ -313,10 +313,9 @@ public class ConfigEntry<T> {
String stringValue = stringConverter.apply(value);
if (stringValue == null) {
// To ensure that a null value is not set in the configuration
- LOG.warn("Config {} value to set is null, ignore setting to Config.", stringValue);
+ LOG.warn("Config key {} value to set is null, ignore setting to Config.", key);
return;
}
-
properties.put(key, stringValue);
}
}