Skip to content

Commit

Permalink
Adding logs to presto query errors (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshvaryani authored Jul 1, 2024
1 parent fa524ab commit a3e4e79
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,15 @@ protected void postConnectionHook(
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());
}

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

0 comments on commit a3e4e79

Please sign in to comment.