MINOR: improve StreamsResetter logging (#18237)

StreamsResetter should log the deprecation warning only if the deprecated
flag is used.

Reviewers: Bruno Cadonna <bruno@confluent.io>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Matthias J. Sax 2024-12-18 18:29:42 -08:00
parent 1bdf98ec15
commit 9d9c0a941d
1 changed files with 3 additions and 1 deletions

View File

@ -687,7 +687,9 @@ public class StreamsResetter {
}
public List<String> intermediateTopicsOption() {
System.out.println("intermediateTopicsOption is deprecated and will be removed in a future release");
if (options.has(intermediateTopicsOption)) {
System.out.println("WARN: `--intermediate-topics` is deprecated and will be removed in a future release");
}
return options.valuesOf(intermediateTopicsOption);
}