Skip to content

Commit 7dffbe6

Browse files
committed
Update StageLoggingWithOverride.scala
1 parent 0c88f39 commit 7dffbe6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

http-core/src/main/scala/org/apache/pekko/http/impl/util/StageLoggingWithOverride.scala

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ package org.apache.pekko.http.impl.util
1919
import org.apache.pekko
2020
import pekko.annotation.InternalApi
2121
import pekko.stream.stage.GraphStageLogic
22-
import pekko.event.{ LogSource, LoggingAdapter, NoLogging }
23-
import pekko.stream.Materializer
22+
import pekko.event.{ LogSource, LoggingAdapter }
2423

2524
// TODO Try to reconcile with what Pekko provides in StageLogging.
2625
// We thought this could be removed when https://github.com/akka/akka/issues/18793 had been implemented
@@ -43,10 +42,7 @@ private[pekko] trait StageLoggingWithOverride extends GraphStageLogic {
4342
_log =
4443
logOverride match {
4544
case DefaultNoLogging =>
46-
materializer match {
47-
case m: Materializer => pekko.event.Logging(m.system, logSource)(LogSource.fromClass)
48-
case _ => NoLogging
49-
}
45+
pekko.event.Logging(materializer.system, logSource)(LogSource.fromClass)
5046
case x => x
5147
}
5248
case _ =>

0 commit comments

Comments
 (0)