Skip to content

Commit b2bd4d2

Browse files
authored
[Improve][Config] Add warning for use fall back keys (#5753)
1 parent 8d87cf8 commit b2bd4d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

seatunnel-api/src/main/java/org/apache/seatunnel/api/configuration/ReadonlyConfig.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ public <T> Optional<T> getOptional(Option<T> option) {
103103
for (String fallbackKey : option.getFallbackKeys()) {
104104
value = getValue(fallbackKey);
105105
if (value != null) {
106-
log.info(
107-
"Config uses fallback configuration key '{}' instead of key '{}'",
108-
fallbackKey,
109-
option.key());
106+
log.warn(
107+
"Please use the new key '{}' instead of the deprecated key '{}'.",
108+
option.key(),
109+
fallbackKey);
110110
break;
111111
}
112112
}

0 commit comments

Comments
 (0)