-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix RemoteDeathWatchSpec and improve logging #212
The head ref may contain hidden characters: "wip-1621-logging-\u2202\u03C0"
Conversation
- it is customary to use class name for categorizing logs, hence we should support it; class is taken from logSource.getClass - update SLF4J module to use logClass as category and set logSource in MDC "akkaSource" - add docs
- ELAR extended DeadLetterActorRef, which is serialized specially, not keeping the name - made deadletter behavior a trait, mix that into both and only override writeReplace in DLAR - remove extraneous debug settings from RemoteDeathWatchSpec
testActor ! "ping" | ||
expectMsg("ping") | ||
"notify with one Terminated message when an Actor is already dead" in { | ||
val terminal = system.actorOf(Props(context ⇒ { case _ ⇒ })) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't system.actorOf(Props.empty) work better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works the same, but will change to the cleaner variant
Looks like something you're really enjoying ;-) +1 from me |
well, I certainly enjoy good debug output when encountering bugs ;-) |
* } | ||
* }}} | ||
*/ | ||
//def getLogger(bus: LoggingBus, logSource: AnyRef): LoggingAdapter = apply(bus, LogSource.fromAnyRef(logSource)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dead comment. FIXME, TICKET or REMOVE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d’oh: forgot to re-enable, only commented out to ensure that we are not using it ourselves (because I wanted all logging to include system name if possible).
- tons of documentation added - lift extraction of logClass into LogSource type-class - prefer Props.empty
okay, feedback was good (also necessary) and incorporated. send smileys my way ;-) |
:) |
1 similar comment
:) |
fix RemoteDeathWatchSpec and improve logging
multiple tickets: 1591, 1621, 1622