Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshvaryani committed Jul 1, 2024
1 parent 5510bb6 commit 09e893e
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ protected void postConnectionHook(
int offset,
int length,
Callback callback) {
try {
response.getOutputStream().write(buffer, offset, length);
if (response.getStatus() == HttpServletResponse.SC_BAD_GATEWAY) {
log.error("Received 502 Bad Gateway response for request URI: {}", request.getRequestURI());
}
try {
response.getOutputStream().write(buffer, offset, length);
if (response.getStatus() == HttpServletResponse.SC_BAD_GATEWAY) {
log.error("Received 502 Bad Gateway response for request URI: {}", request.getRequestURI());
}

callback.succeeded();
callback.succeeded();
} catch (Throwable var9) {
log.error("Exception occurred while processing request URI: {}", request.getRequestURI(), var9);
callback.failed(var9);
log.error("Exception occurred while processing request URI: {}", request.getRequestURI(), var9);
callback.failed(var9);
}
}

protected void debugLogHeaders(HttpServletRequest request) {
if (log.isDebugEnabled()) {
log.debug("-------HttpServletRequest headers---------");
Expand Down

0 comments on commit 09e893e

Please sign in to comment.