forked from logfellow/logstash-logback-encoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In newer versions of java, specifically 16 and over, the `ThreadLocal` can be cleared before the Thread is killed. This breaks the assumption of `ThreadLocalHolder` which expected the `initializeThread` method to be executed only once per `Thread`. This commit changes the `threadValues` to become a map that holds which thread the value is associated with so we can avoid recreating new values when one already exists. Fixes logfellow#722
- Loading branch information
1 parent
d463762
commit 6392e87
Showing
2 changed files
with
172 additions
and
133 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.