Review feedback

This commit is contained in:
Christopher Batey 2018-09-20 15:44:12 +01:00
parent 58330ad03e
commit a7d778ad50

View file

@ -37,6 +37,10 @@ import scala.util.control.NonFatal
}
}
/**
* INTERNAL API
*/
@InternalApi
private abstract class AbstractSupervisor[O, I, Thr <: Throwable](strategy: SupervisorStrategy)(implicit ev: ClassTag[Thr]) extends BehaviorInterceptor[O, I] {
private val throwableClass = implicitly[ClassTag[Thr]].runtimeClass
@ -62,7 +66,7 @@ private abstract class AbstractSupervisor[O, I, Thr <: Throwable](strategy: Supe
def log(ctx: ActorContext[_], t: Throwable): Unit = {
if (strategy.loggingEnabled) {
ctx.asScala.log.error(t, "Supervisor [{}] saw failure: {}", this, t.getMessage)
ctx.asScala.log.error(t, "Supervisor {} saw failure: {}", this, t.getMessage)
}
}