+act #3630 - Only fall back to default ctor if NoSuchMethodException
This commit is contained in:
parent
c35988de2c
commit
7588f04292
2 changed files with 5 additions and 6 deletions
|
|
@ -60,14 +60,14 @@ object LoggingDocSpec {
|
|||
reqId += 1
|
||||
val always = Map("requestId" -> reqId)
|
||||
val perMessage = currentMessage match {
|
||||
case r: Req => Map("visitorId" -> r.visitorId)
|
||||
case _ => Map()
|
||||
case r: Req ⇒ Map("visitorId" -> r.visitorId)
|
||||
case _ ⇒ Map()
|
||||
}
|
||||
always ++ perMessage
|
||||
}
|
||||
|
||||
def receive: Receive = {
|
||||
case r: Req => {
|
||||
case r: Req ⇒ {
|
||||
log.info(s"Starting new request: ${r.work}")
|
||||
}
|
||||
}
|
||||
|
|
@ -75,7 +75,6 @@ object LoggingDocSpec {
|
|||
|
||||
//#mdc-actor
|
||||
|
||||
|
||||
//#my-event-listener
|
||||
import akka.event.Logging.InitializeLogger
|
||||
import akka.event.Logging.LoggerInitialized
|
||||
|
|
@ -117,7 +116,7 @@ object LoggingDocSpec {
|
|||
|
||||
class LoggingDocSpec extends AkkaSpec {
|
||||
|
||||
import LoggingDocSpec.{MyActor, MdcActor, MdcActorMixin, Req}
|
||||
import LoggingDocSpec.{ MyActor, MdcActor, MdcActorMixin, Req }
|
||||
|
||||
"use a logging actor" in {
|
||||
val myActor = system.actorOf(Props[MyActor])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue