I was trying: ``` class MDCTaskDecorator : TaskDec...
# spring
m
I was trying:
Copy code
class MDCTaskDecorator : TaskDecorator {

    override fun decorate(runnable: Runnable): Runnable {
        var contextMap = MDC.getCopyOfContextMap()
        return Runnable {
            try {
                MDC.setContextMap(contextMap)
                runnable.run()
            } finally {
                MDC.clear()
            }
        }
    }
}