Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a way of getting ExecutionStream from threadName #302

Merged
merged 3 commits into from
Oct 5, 2018
Merged

Conversation

dufrannea
Copy link
Contributor

This is useful for example to redirect log4j/slff4j calls to the right executionStream, using a dedicated appender.

Executor.threadNamesToStreams.remove(tName)
}
}
})(Implicits.sideEffectThreadPool)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be worth to remove the other implicit sideEffectThreadPool defined earlier

import Implicits.sideEffectThreadPool
to make sure that it is the new sideEffectExecutionContext that you redefine (at l.873) which is used everywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly it is used in a few other places, I would like to change this in another PR if that is okay with you

@Masuzu Masuzu self-requested a review October 5, 2018 11:44
@dufrannea dufrannea merged commit 73a0f12 into master Oct 5, 2018
@guillaumebort guillaumebort deleted the log4j branch January 28, 2019 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants