generated from pricelees/issue-pr-template
[#44] 매장 기능 도입 #45
@ -9,6 +9,7 @@ import org.slf4j.MDC
|
|||||||
import org.springframework.web.filter.OncePerRequestFilter
|
import org.springframework.web.filter.OncePerRequestFilter
|
||||||
import org.springframework.web.util.ContentCachingRequestWrapper
|
import org.springframework.web.util.ContentCachingRequestWrapper
|
||||||
import org.springframework.web.util.ContentCachingResponseWrapper
|
import org.springframework.web.util.ContentCachingResponseWrapper
|
||||||
|
import roomescape.common.util.MdcPrincipalId
|
||||||
|
|
||||||
private val log: KLogger = KotlinLogging.logger {}
|
private val log: KLogger = KotlinLogging.logger {}
|
||||||
|
|
||||||
@ -33,7 +34,7 @@ class HttpRequestLoggingFilter(
|
|||||||
cachedResponse.copyBodyToResponse()
|
cachedResponse.copyBodyToResponse()
|
||||||
} finally {
|
} finally {
|
||||||
MDC.remove("startTime")
|
MDC.remove("startTime")
|
||||||
MDC.remove("member_id")
|
MdcPrincipalId.clear()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user