-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KAFKA-18804: Remove slf4j warning when using tool script #18918
base: trunk
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @chia7712 |
This should be backported to 4.0, as the same issue happens in 4.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR, left some questions.
When I run ./gradlew releaseTarGz
, I do not see any Log4j warning messages. However, these messages appear when using these tools in the source code. Does this only happen in the development environment?
And why don't we exclude the Log4j dependency in the core module? It is defined in build.gradle at line 1137.
Hi @m1a2st
The above warning is handled by KAFKA-18752
We could do that, but it is not necessary. The warning states that slf4j detects multiple bindings in projects, so removing one is enough. In this situation, it is easiest to exclude one in the tools module. |
I'm not referring to this warning. I tested the steps below, and no warning messages appeared.
|
At the source code root, you need to complete the |
Description
When running tools scripts, we encounter "multiple SLF4J bindings" warnings. Take some random scripts, for example:
Verification
After applying this patch:
Committer Checklist (excluded from commit message)