Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
anuvedverma committed Jul 2, 2024
1 parent 603ff4d commit c17fbf7
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ protected void postConnectionHook(
request.getRequestURL());
}
response.getOutputStream().write(buffer, offset, length);
// [sev-16337] with a 10% probably, log the request and response headers and size for debugging
if (Math.random() < 0.10) {
// [sev-16337] with a 1% probably, log the request and response headers
// and size for debugging
if (Math.random() < 0.01) {
log.debug("Request URL: {} , request URI {} , servlet path {} , toString {}, size {}",
request.getRequestURL(), request.getRequestURI(), request.getServletPath(),
request.toString(), request.getContentLength());
Expand All @@ -71,7 +72,8 @@ protected void postConnectionHook(
} catch (Throwable var9) {
log.error("Exception occurred while processing request URL: {} , request URI {} ,"
+ " servlet path {} , toString {}, size {}", request.getRequestURL(),
request.getRequestURI(), request.getServletPath(), request.toString(), request.getContentLength(), var9);
request.getRequestURI(), request.getServletPath(), request.toString(),
request.getContentLength(), var9);
errorLogHeaders(request);
errorLogHeaders(response);
callback.failed(var9);
Expand Down

0 comments on commit c17fbf7

Please sign in to comment.