浏览代码

log the protoco file name

pull/366/head
getong 8 年前
父节点
当前提交
ad95f0b352
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/error_logger_lager_h.erl

+ 2
- 2
src/error_logger_lager_h.erl 查看文件

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

正在加载...
取消
保存