瀏覽代碼

Make the tests pass, show the local name whem the supervisor is {local, Name}

pull/115/head
Marc Worrell 12 年之前
父節點
當前提交
31a1e9e693
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. +5
    -1
      src/error_logger_lager_h.erl

+ 5
- 1
src/error_logger_lager_h.erl 查看文件

@ -98,9 +98,13 @@ handle_event(Event, State) ->
case lists:sort(D) of
[{errorContext, Ctx}, {offender, Off}, {reason, Reason}, {supervisor, Name}] ->
Offender = format_offender(Off),
Name1 = case Name of
{local, N} -> N;
_ -> Name
end,
?LOGFMT(error, Pid,
"Supervisor ~w had child ~s exit with reason ~s in context ~w",
[Name, Offender, format_reason(Reason), Ctx]);
[Name1, Offender, format_reason(Reason), Ctx]);
_ ->
?LOGMSG(error, Pid, "SUPERVISOR REPORT " ++ print_silly_list(D))
end;

Loading…
取消
儲存