Marcel Overdijk
10/31/2019, 10:36 PMclass MDCTaskDecorator : TaskDecorator {
override fun decorate(runnable: Runnable): Runnable {
var contextMap = MDC.getCopyOfContextMap()
return Runnable {
try {
MDC.setContextMap(contextMap)
runnable.run()
} finally {
MDC.clear()
}
}
}
}