Skip to content
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

[BUG] Some slf4j warn message shows in the log file when sending email #693

Closed
gaobinlong opened this issue Jun 26, 2023 · 3 comments · Fixed by #791
Closed

[BUG] Some slf4j warn message shows in the log file when sending email #693

gaobinlong opened this issue Jun 26, 2023 · 3 comments · Fixed by #791
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@gaobinlong
Copy link
Collaborator

What is the bug?
When sending a email at the first time, OpenSearch main log shows that there are some slf4j related warn message, I think it should be eliminated:

[2023-06-26T17:02:40,596][WARN ][stderr                   ] [bcd07466ee01] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[2023-06-26T17:02:40,597][WARN ][stderr                   ] [bcd07466ee01] SLF4J: Defaulting to no-operation (NOP) logger implementation
[2023-06-26T17:02:40,597][WARN ][stderr                   ] [bcd07466ee01] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Go to 'Alerting plugin of OSD '
  2. Click on 'send test message' after you have setup email account correctly and creating a alerting monitor
  3. See some warn log in OpenSearch main log file

What is the expected behavior?
Remove the unexpected warn log

What is your host/environment?

  • OS: [MacOS]
  • Version [3.0]
  • Plugins: notification, alerting

Do you have any screenshots?
image

@gaobinlong gaobinlong added bug Something isn't working untriaged and removed untriaged labels Jun 26, 2023
@gaobinlong gaobinlong added the good first issue Good for newcomers label Aug 23, 2023
@Noir01
Copy link
Contributor

Noir01 commented Oct 7, 2023

Hi! I'll try my best to fix the bug.

@Hailong-am
Copy link
Collaborator

trying to reproduce in my local. when i try with slack webhook, there also have same waring message printed in console.

@Hailong-am
Copy link
Collaborator

@Noir01 @gaobinlong Add implementation "org.apache.logging.log4j:log4j-slf4j-impl:${versions.log4j}" to core/build.gradle dependencies will solve the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants