From 629aae95475a0eafa600dc218edab52b22fe1d6a Mon Sep 17 00:00:00 2001 From: KWY Date: Tue, 16 Jan 2024 16:16:28 +0900 Subject: [PATCH] [feat] check content type add --- src/main/java/com/moddy/server/config/aspect/LoggingAspect.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/moddy/server/config/aspect/LoggingAspect.java b/src/main/java/com/moddy/server/config/aspect/LoggingAspect.java index 097e41fc..ea6be316 100644 --- a/src/main/java/com/moddy/server/config/aspect/LoggingAspect.java +++ b/src/main/java/com/moddy/server/config/aspect/LoggingAspect.java @@ -71,6 +71,7 @@ private String getCommunicationData( sb.append(START_LOG); sb.append(String.format("====> Request: %s %s ({%d}ms)\n====> *Header = {%s}\n", request.getMethod(), request.getRequestURL(), endAt - startAt, getHeaders(request))); + sb.append("=================> content type is ").append(request.getContentType()).append("\n"); if ("POST".equalsIgnoreCase(request.getMethod()) && request.getContentType() != null && request.getContentType().contains(MULTI_PART_FORM_DATA)) { sb.append("====> Body: "); cachingRequest.getParts().stream().map(Part::getName).forEach(n -> {