preStart is now more type-safe, allows AsyncStage to provide it's Async context
This commit is contained in:
parent
9607ec0cdf
commit
b0b6c9e98a
5 changed files with 17 additions and 18 deletions
|
|
@ -528,7 +528,7 @@ private[akka] final case class Log[T](name: String, extract: T ⇒ Any, logAdapt
|
|||
|
||||
// TODO more optimisations can be done here - prepare logOnPush function etc
|
||||
|
||||
override def preStart(ctx: Context[T]): Unit = {
|
||||
override def preStart(ctx: LifecycleContext): Unit = {
|
||||
logLevels = ctx.attributes.logLevels.getOrElse(DefaultLogLevels)
|
||||
log = logAdapter match {
|
||||
case Some(l) ⇒ l
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue