Skip to content

Commit

Permalink
[refactor]LoggingInterceptor 타이머 종료 시점 수정 (#322)
Browse files Browse the repository at this point in the history
Signed-off-by: kmw2378 <[email protected]>
  • Loading branch information
kmw2378 committed Jul 9, 2024
1 parent 4eca529 commit 7d4e414
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 7d4e414

Please sign in to comment.