Skip to content

Commit

Permalink
remove full header debug from success
Browse files Browse the repository at this point in the history
  • Loading branch information
anuvedverma committed Jul 2, 2024
1 parent 7bd21d9 commit 335e62f
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ protected void postConnectionHook(
}
response.getOutputStream().write(buffer, offset, length);

// [sev-16337] with a 1% probably, log the request and response headers and size for debugging
if (Math.random() < 0.01) {
debugLogHeaders(request);
debugLogHeaders(response);
// [sev-16337] with a 10% probably, log the request and response headers and size for debugging
if (Math.random() < 0.10) {
log.debug("Request URL: {} , request URI {} , servlet path {} , toString {}, size {}",
request.getRequestURL(), request.getRequestURI(), request.getServletPath(),
request.toString(), request.getContentLength());
Expand Down

0 comments on commit 335e62f

Please sign in to comment.