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

Warning log printed when debug is enabled in AbstractLifecycle.java #4996

Closed
Arshiya95 opened this issue Jun 24, 2020 · 3 comments · Fixed by #5167
Closed

Warning log printed when debug is enabled in AbstractLifecycle.java #4996

Arshiya95 opened this issue Jun 24, 2020 · 3 comments · Fixed by #5167
Assignees

Comments

@Arshiya95
Copy link

Jetty version
jetty-util-9.4.30.v20200611

Java version
1.8

OS type/version
Linux

Description
Under class org.eclipse.jetty.util.component.AbstractLifecycle.java setFailed(), there is a warning log printed when debug is enabled:

    if(LOG.isDebugEnabled())
        LOG.warn((new StringBuilder()).append("FAILED ").append(this).append(": ").append(th).toString(), th);
@joakime
Copy link
Contributor

joakime commented Jun 24, 2020

Most of the cases I found are not really a bug / issue.
But we should review them anyway, as some things have changed over the years.
An example would be when the developer separated the message and the throwable (like in the ServletHolder).
That's no longer needed (and can produce throwables far away from the message in the actual log output)

@janbartel
Copy link
Contributor

The work in progress is being done on jetty-10.0.x, as any changes to the logging are too hard to port forward.

janbartel added a commit that referenced this issue Aug 17, 2020
Signed-off-by: Jan Bartel <janb@webtide.com>
janbartel added a commit that referenced this issue Aug 17, 2020
Signed-off-by: Jan Bartel <janb@webtide.com>
janbartel added a commit that referenced this issue Aug 18, 2020
Signed-off-by: Jan Bartel <janb@webtide.com>
janbartel added a commit that referenced this issue Aug 18, 2020
Signed-off-by: Jan Bartel <janb@webtide.com>
janbartel added a commit that referenced this issue Aug 18, 2020
Signed-off-by: Jan Bartel <janb@webtide.com>
janbartel added a commit that referenced this issue Aug 19, 2020
Signed-off-by: Jan Bartel <janb@webtide.com>
joakime added a commit that referenced this issue Aug 20, 2020
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
janbartel added a commit that referenced this issue Aug 24, 2020
Signed-off-by: Jan Bartel <janb@webtide.com>
janbartel added a commit that referenced this issue Aug 24, 2020
* Issue #4996 Regularize logging

Signed-off-by: Jan Bartel <janb@webtide.com>

Co-authored-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants