소스 검색

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.

불러오는 중...
취소
저장