Skip to content

Commit

Permalink
MINOR: improve StreamsResetter logging (#18237)
Browse files Browse the repository at this point in the history
StreamsResetter should log the deprecation warning only if the deprecated
flag is used.

Reviewers: Bruno Cadonna <[email protected]>, Chia-Ping Tsai <[email protected]>
  • Loading branch information
mjsax authored Dec 19, 2024
1 parent f7f3cff commit a9eb06b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,9 @@ public List<String> inputTopicsOption() {
}

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);
}

Expand Down

0 comments on commit a9eb06b

Please sign in to comment.