Skip to content
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

Merged
merged 5 commits into from
Jan 13, 2012
Merged

Conversation

rkuhn
Copy link
Contributor

@rkuhn rkuhn commented Jan 12, 2012

multiple tickets: 1591, 1621, 1622

- 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 _ ⇒ }))
Copy link
Member

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?

Copy link
Contributor Author

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

@viktorklang
Copy link
Member

Looks like something you're really enjoying ;-)

+1 from me

@rkuhn
Copy link
Contributor Author

rkuhn commented Jan 12, 2012

well, I certainly enjoy good debug output when encountering bugs ;-)

* }
* }}}
*/
//def getLogger(bus: LoggingBus, logSource: AnyRef): LoggingAdapter = apply(bus, LogSource.fromAnyRef(logSource))
Copy link
Member

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

Copy link
Contributor Author

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
@rkuhn
Copy link
Contributor Author

rkuhn commented Jan 13, 2012

okay, feedback was good (also necessary) and incorporated. send smileys my way ;-)

@viktorklang
Copy link
Member

:)

1 similar comment
@patriknw
Copy link
Member

:)

rkuhn added a commit that referenced this pull request Jan 13, 2012
fix RemoteDeathWatchSpec and improve logging
@rkuhn rkuhn merged commit 312ea1b into master Jan 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants