diff --git a/proxyserver/src/main/java/com/lyft/data/proxyserver/ProxyHandler.java b/proxyserver/src/main/java/com/lyft/data/proxyserver/ProxyHandler.java index 5923c5de..71a9a5c7 100644 --- a/proxyserver/src/main/java/com/lyft/data/proxyserver/ProxyHandler.java +++ b/proxyserver/src/main/java/com/lyft/data/proxyserver/ProxyHandler.java @@ -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); } }