[CLOSED] Establish logging policy in cases of error and propagation of actual exceptions #30
Labels
1 - triaged
Tickets that are safe to pick up for contributing in terms of likeliness of being accepted
Issue by jrudolph
Thursday Aug 21, 2014 at 12:03 GMT
Originally opened as akka/akka#15714
E.g. in
HttpManager
we react differently on network errors caused byHttp.Connect
andHttp.Bind
commands:Http.Connect
is DEBUG-logged and then it's reported to the commander containing the remote address in questionHttp.Bind
is WARNING-logged and the singletonBindFailedException
is reported to the commanderIn both cases, neither the actual exception nor the message are reported back to the commander. This means it isn't possible for the commander to actually take responsibility for handling or reporting the error and thus it's easy to get into the old Java double logging anti-pattern.
I would propose a scheme where errors/exceptions are generally reported to the commander including the underlying message and if they are logged then only with DEBUG-level, to let the commander decide what to do with them.
It's probably not too useful to also send the stacktraces/original exceptions around, but there should be at least some way to log the stacktraces somewhere before they are discarded for debugging purposes.
/cc @sirthias
The text was updated successfully, but these errors were encountered: