mirror of https://github.com/apache/kafka.git
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:
parent
1bdf98ec15
commit
9d9c0a941d
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue