Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ package org.apache.pekko.http.impl.util
import org.apache.pekko
import pekko.annotation.InternalApi
import pekko.stream.stage.GraphStageLogic
import pekko.event.{ LogSource, LoggingAdapter, NoLogging }
import pekko.stream.ActorMaterializer
import pekko.event.{ LogSource, LoggingAdapter }

// TODO Try to reconcile with what Pekko provides in StageLogging.
// We thought this could be removed when https://github.com/akka/akka/issues/18793 had been implemented
Expand All @@ -43,10 +42,7 @@ private[pekko] trait StageLoggingWithOverride extends GraphStageLogic {
_log =
logOverride match {
case DefaultNoLogging =>
materializer match {
case a: ActorMaterializer => pekko.event.Logging(a.system, logSource)(LogSource.fromClass)
case _ => NoLogging
}
pekko.event.Logging(materializer.system, logSource)(LogSource.fromClass)
case x => x
}
case _ =>
Expand Down
Loading