From bf3b6517d9666f5470b049aebe1e4a61558a2e4c Mon Sep 17 00:00:00 2001 From: Anuved Verma Date: Mon, 1 Jul 2024 15:21:35 -0700 Subject: [PATCH] use error log level --- .../main/java/com/lyft/data/proxyserver/ProxyHandler.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 b8a61829..073b1abb 100644 --- a/proxyserver/src/main/java/com/lyft/data/proxyserver/ProxyHandler.java +++ b/proxyserver/src/main/java/com/lyft/data/proxyserver/ProxyHandler.java @@ -66,7 +66,12 @@ protected void postConnectionHook( log.error("Exception occurred while processing request URL: {} , request URI {} ," + " servlet path {} , toString {}", request.getRequestURL(), request.getRequestURI(), request.getServletPath(), request.toString(), var9); - debugLogHeaders(request); + log.error("-------HttpServletRequest headers---------"); + Enumeration headers = request.getHeaderNames(); + while (headers.hasMoreElements()) { + String header = headers.nextElement(); + log.error(header + "->" + request.getHeader(header)); + } callback.failed(var9); } }