Created
February 12, 2020 21:12
-
-
Save vhutov/a837cde5e60871867c476ef70827b1aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WrappedRunnable(runnable: Runnable, context: LoggingContext) extends Runnable { | |
override def run(): Unit = { | |
LoggingContext.localContext.value = context | |
runnable.run() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment