Permalink
Browse files

Don't assume the supervisor is a registered process, it could also be…

… a pid.
  • Loading branch information...
1 parent 7993c8f commit b8ce2a64f7377f525d27a363c5d8ccc12307212a @mworrell committed Mar 7, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/error_logger_lager_h.erl
@@ -100,7 +100,7 @@ handle_event(Event, State) ->
Offender = format_offender(Off),
?LOGFMT(error, Pid,
"Supervisor ~w had child ~s exit with reason ~s in context ~w",
- [element(2, Name), Offender, format_reason(Reason), Ctx]);
+ [Name, Offender, format_reason(Reason), Ctx]);
_ ->
?LOGMSG(error, Pid, "SUPERVISOR REPORT " ++ print_silly_list(D))
end;

0 comments on commit b8ce2a6

Please sign in to comment.