Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #16 from basho/adt-simple_one_for_one-crash-report

Use mfargs instead of name attribute as the way to detect supervisor_bridge
  • Loading branch information...
commit 2fd7945f47f354eb54efbc50966ac125392b331c 2 parents 8591d1f + 6fdbe25
@Vagabond Vagabond authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/error_logger_lager_h.erl
View
7 src/error_logger_lager_h.erl
@@ -159,14 +159,15 @@ format_crash_report(Report, Neighbours) ->
[Name, length(Neighbours), format_reason(Reason)]).
format_offender(Off) ->
- case proplists:get_value(name, Off) of
+ case proplists:get_value(mfargs, Off) of
undefined ->
%% supervisor_bridge
io_lib:format("at module ~w at ~w",
[proplists:get_value(mod, Off), proplists:get_value(pid, Off)]);
- Name ->
+ MFArgs ->
%% regular supervisor
- MFA = format_mfa(proplists:get_value(mfargs, Off)),
+ MFA = format_mfa(MFArgs),
+ Name = proplists:get_value(name, Off),
io_lib:format("~w started with ~s at ~w",
[Name, MFA, proplists:get_value(pid, Off)])
end.
Please sign in to comment.
Something went wrong with that request. Please try again.