preStart is now more type-safe, allows AsyncStage to provide it's Async context

This commit is contained in:
Konrad Malawski 2015-05-11 13:16:37 +02:00
parent 9607ec0cdf
commit b0b6c9e98a
5 changed files with 17 additions and 18 deletions

View file

@ -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