diff --git a/src/main/java/org/kakaoshare/backend/logging/interceptor/LoggingInterceptor.java b/src/main/java/org/kakaoshare/backend/logging/interceptor/LoggingInterceptor.java index 78cae4c3..530c6c8a 100644 --- a/src/main/java/org/kakaoshare/backend/logging/interceptor/LoggingInterceptor.java +++ b/src/main/java/org/kakaoshare/backend/logging/interceptor/LoggingInterceptor.java @@ -59,9 +59,9 @@ public void afterCompletion(final HttpServletRequest request, final HttpServletResponse response, final Object handler, final Exception ex) throws Exception { + apiTimer.stop(); final ContentCachingRequestWrapper cachingRequest = new ContentCachingRequestWrapper(request); final ContentCachingResponseWrapper cachingResponse = new ContentCachingResponseWrapper(response); - apiTimer.stop(); logRequestAndResponse(cachingRequest, cachingResponse); cachingResponse.copyBodyToResponse(); }