Skip to content

Commit 587988c

Browse files
committed
Avoid tupling when putting to MDC
1 parent 6ca49e8 commit 587988c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slf4j/src/main/scala/org/typelevel/log4cats/slf4j/internal/Slf4jLoggerInternal.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private[slf4j] object Slf4jLoggerInternal {
6363
try {
6464
// Once 2.12 is no longer supported, change this to MDC.setContextMap(ctx.asJava)
6565
MDC.clear()
66-
ctx.foreach { case (k, v) => MDC.put(k, v) }
66+
ctx.foreachEntry((k, v) => MDC.put(k, v))
6767
logging()
6868
} finally
6969
if (backup eq null) MDC.clear()

0 commit comments

Comments
 (0)