This PR fixes #404 by preventing putCloseable from clobbering a key that was present in the MDC before the putCloseable was created. It thereby allows nested putCloseables. The existing behavior surprised us when we were writing some recursive code. Let me know what you think, and thanks for making SLF4j!
Hi folks,
This PR fixes #404 by preventing
putCloseable
from clobbering a key that was present in the MDC before theputCloseable
was created. It thereby allows nestedputCloseable
s. The existing behavior surprised us when we were writing some recursive code. Let me know what you think, and thanks for making SLF4j!