소스 검색

Merge pull request #366 from getong/fix_ranch_error_log_three_parameters

log the ranch error msg
pull/302/merge
Mark Allen 8 년 전
committed by GitHub
부모
커밋
3590d49f9f
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. +6
    -1
      src/error_logger_lager_h.erl

+ 6
- 1
src/error_logger_lager_h.erl 파일 보기

@ -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, Protocol,
"Ranch listener ~p terminated with result:~s",
[Ref, format_reason(Ret)])
end;
{false, "webmachine error"++_} ->
%% Webmachine HTTP server error

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