Skip to content

Commit

Permalink
Don't assume the supervisor is a registered process, it could also be…
Browse files Browse the repository at this point in the history
… a pid.
  • Loading branch information
mworrell committed Mar 7, 2013
1 parent 7993c8f commit b8ce2a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error_logger_lager_h.erl
Expand Up @@ -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;
Expand Down

0 comments on commit b8ce2a6

Please sign in to comment.