|
|
@ -189,7 +189,12 @@ log_event(Event, #state{sink=Sink} = State) -> |
|
|
|
[Ref, _Protocol, Worker, Reason] -> |
|
|
|
?LOGFMT(Sink, error, Worker, |
|
|
|
"Ranch listener ~p terminated with reason: ~s", |
|
|
|
[Ref, format_reason(Reason)]) |
|
|
|
[Ref, format_reason(Reason)]); |
|
|
|
[Ref, _Protocol, Ret] -> |
|
|
|
%% ranch_conns_sup.erl module line 119-123 has three parameters error msg, log it. |
|
|
|
?LOGFMT(Sink, error, undefined, |
|
|
|
"Ranch listener ~p terminated with result:~s", |
|
|
|
[Ref, format_reason(Ret)]) |
|
|
|
end; |
|
|
|
{false, "webmachine error"++_} -> |
|
|
|
%% Webmachine HTTP server error |
|
|
|