From 408ae173c865b1e44e962e79a4ae187e442dfeb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9E=A5=EC=A4=80=ED=95=98?= Date: Wed, 7 Aug 2024 17:29:18 +0900 Subject: [PATCH] fix logging --- .../interceptor/LoggingInterceptor.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/main/java/newCar/event_page/interceptor/LoggingInterceptor.java b/src/main/java/newCar/event_page/interceptor/LoggingInterceptor.java index 28e938a..bb53e16 100644 --- a/src/main/java/newCar/event_page/interceptor/LoggingInterceptor.java +++ b/src/main/java/newCar/event_page/interceptor/LoggingInterceptor.java @@ -24,23 +24,6 @@ public boolean preHandle(HttpServletRequest request, HttpServletResponse respons System.out.println(headerName + ": " + request.getHeader(headerName)); } - // 파라미터 로그 - System.out.println("Parameters:"); - Enumeration parameterNames = request.getParameterNames(); - while (parameterNames.hasMoreElements()) { - String paramName = parameterNames.nextElement(); - System.out.println(paramName + ": " + request.getParameter(paramName)); - } - - // 바디 로그 (선택 사항, 바디를 여러 번 읽을 수 없으므로 주의) - System.out.println("Body:"); - StringBuilder body = new StringBuilder(); - BufferedReader reader = request.getReader(); - String line; - while ((line = reader.readLine()) != null) { - body.append(line); - } - System.out.println(body.toString()); return true; } }