瀏覽代碼

Address #332. The `stdlib` module `supervisor` reports the child name as `id` now vs `name` previously

pull/334/head
John R. Daily 9 年之前
父節點
當前提交
6d8cd800f9
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. +4
    -1
      src/error_logger_lager_h.erl

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

@ -295,7 +295,10 @@ format_offender(Off) ->
MFArgs ->
%% regular supervisor
MFA = format_mfa(MFArgs),
Name = get_value(name, Off),
%% In 2014 the error report changed from `name' to
%% `id', so try that first.
Name = get_value(id, Off, get_value(name, Off)),
io_lib:format("~p started with ~s at ~w",
[Name, MFA, get_value(pid, Off)])
end.

Loading…
取消
儲存