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

Adding logs to presto query errors #215

Merged
merged 4 commits into from
Jul 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,19 @@ protected void postConnectionHook(
int offset,
int length,
Callback callback) {
try {
response.getOutputStream().write(buffer, offset, length);
callback.succeeded();
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) {
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
Loading