-
Notifications
You must be signed in to change notification settings - Fork 25.7k
modules: add slf4j-nop where it is missing #132770
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
Conversation
Default startup of elasticsearch results in warnings: > [WARN ][stderr ] [es] SLF4J: No SLF4J providers were found. > [WARN ][stderr ] [es] SLF4J: Defaulting to no-operation (NOP) logger implementation > [WARN ][stderr ] [es] SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details. It seems like most modules and plugins install nop logger, but some don't. If one installs them everywhere, these warnings seem to go away.
|
I think this is possibly CC @rjernst and ping to @elastic/es-core-infra (Team:Core/Infra) and is like :Core/Infra/Logging despite being a change to gradle dependencies. |
|
The warning is telling us we are hiding any messages sent to slf4j in these plugins. Adding the nop jar only makes the warning go away, but doesn't fix the problem. I think instead we want a bridge. |
Ok! All other plugins that include slf4j API jar, also include the nop jar already - do they also need to be changing? |
|
Yes, any plugin using slf4j should be changed. |
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
|
In order to not loose all logs that come through slf4j, it would be nice to add "log4j-slf4j-impl" dependency for each module that requires "slf4j-api" dependency. |
|
I'm closing this because it's not the approach we want. I opened #137556 in its place to record the work to be done in this area. |
Default startup of elasticsearch results in warnings:
It seems like most modules and plugins install nop logger, but some don't. If one installs them everywhere, these warnings seem to go away.