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

Issue #5121 - always use isDebugEnabled() check before debug logging in WebSocket #5123

Merged
merged 3 commits into from Aug 11, 2020

Conversation

lachlan-roberts
Copy link
Contributor

closes #5121

…pressExtension

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@lachlan-roberts lachlan-roberts linked an issue Aug 6, 2020 that may be closed by this pull request
…in WebSocket

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@@ -202,26 +203,22 @@ protected void decompress(ByteAccumulator accumulator, ByteBuffer buf) throws Da
{
if (read == 0)
{
LOG.debug("Decompress: read 0 {}", toDetail(inflater));
if (LOG.isDebugEnabled())
LOG.debug("Decompress: read 0 {}", toDetail(inflater));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one was important, as the toDetail() causes a lot of unnecessary behavior.

@gregw
Copy link
Contributor

gregw commented Aug 11, 2020

I'll merge this one as Lachlan is on vacation.

@gregw gregw merged commit cbd4c38 into jetty-9.4.x Aug 11, 2020
@gregw gregw deleted the jetty-9.4.x-5121-WebSocketDebugLogging branch August 11, 2020 09:51
@joakime joakime added this to In progress in Jetty 9.4.32 via automation Aug 12, 2020
@joakime joakime moved this from In progress to Done in Jetty 9.4.32 Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Jetty 9.4.32
  
Done
Development

Successfully merging this pull request may close these issues.

Add if (LOG.isDebugEnabled()) in CompressExtension.decompress
4 participants