Created
February 12, 2020 21:20
-
-
Save vhutov/bb7e5dc54de8b6473d2033f586c39d3e 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 LoggingExecutionContext(ec: ExecutionContext) extends ExecutionContext { | |
override def execute(runnable: Runnable): Unit = { | |
val context = LoggingContext.localContext.value | |
ec.execute(new WrappedRunnable(runnable, context)) | |
} | |
override def reportFailure(cause: Throwable): Unit = ec.reportFailure(cause) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment