|
|
@ -102,11 +102,11 @@ handle_event(Event, State) -> |
|
|
|
"Supervisor ~w had child ~s exit with reason ~s in context ~w", |
|
|
|
[element(2, Name), Offender, format_reason(Reason), Ctx]); |
|
|
|
_ -> |
|
|
|
?LOG(error, Pid, ["SUPERVISOR REPORT ", print_silly_list(D)]) |
|
|
|
?LOG(error, Pid, "SUPERVISOR REPORT " ++ print_silly_list(D)) |
|
|
|
end; |
|
|
|
{error_report, _GL, {Pid, crash_report, [Self, Neighbours]}} -> |
|
|
|
?CRASH_LOG(Event), |
|
|
|
?LOG(error, Pid, ["CRASH REPORT ", format_crash_report(Self, Neighbours)]); |
|
|
|
?LOG(error, Pid, "CRASH REPORT " ++ format_crash_report(Self, Neighbours)); |
|
|
|
{warning_msg, _GL, {Pid, Fmt, Args}} -> |
|
|
|
?LOG(warning, Pid, lager:safe_format(Fmt, Args, 4096)); |
|
|
|
{warning_report, _GL, {Pid, std_warning, Report}} -> |
|
|
@ -136,7 +136,7 @@ handle_event(Event, State) -> |
|
|
|
?LOG(debug, P, "Supervisor ~w started ~s at pid ~w", |
|
|
|
[element(2, Name), MFA, Pid]); |
|
|
|
_ -> |
|
|
|
?LOG(info, P, ["PROGRESS REPORT ", print_silly_list(D)]) |
|
|
|
?LOG(info, P, "PROGRESS REPORT " ++ print_silly_list(D)) |
|
|
|
end; |
|
|
|
_ -> |
|
|
|
?LOG(warning, self(), "Unexpected error_logger event ~w", [Event]) |
|
|
|