generated from pricelees/issue-pr-template
refactor: Servlet Filter에서의 MDC 제거 로직 변경
This commit is contained in:
parent
efb7148215
commit
6b0c9709ed
@ -9,6 +9,7 @@ import org.slf4j.MDC
|
||||
import org.springframework.web.filter.OncePerRequestFilter
|
||||
import org.springframework.web.util.ContentCachingRequestWrapper
|
||||
import org.springframework.web.util.ContentCachingResponseWrapper
|
||||
import roomescape.common.util.MdcPrincipalId
|
||||
|
||||
private val log: KLogger = KotlinLogging.logger {}
|
||||
|
||||
@ -33,7 +34,7 @@ class HttpRequestLoggingFilter(
|
||||
cachedResponse.copyBodyToResponse()
|
||||
} finally {
|
||||
MDC.remove("startTime")
|
||||
MDC.remove("member_id")
|
||||
MdcPrincipalId.clear()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user