From 5c530ba58d142507f4c454bdfba00392d02af3ee Mon Sep 17 00:00:00 2001 From: chenduo Date: Mon, 14 Oct 2019 18:04:14 +0800 Subject: Fix log on connection process exit --- src/ranch_conns_sup.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ranch_conns_sup.erl b/src/ranch_conns_sup.erl index 9b85b25..b87a7bb 100644 --- a/src/ranch_conns_sup.erl +++ b/src/ranch_conns_sup.erl @@ -128,7 +128,7 @@ loop(State=#state{parent=Parent, ref=Ref, conn_type=ConnType, To ! self(), ranch:log(error, "Ranch listener ~p connection process start failure; " - "~p:start_link/4 returned: ~999999p~n", + "~p:start_link/3 returned: ~999999p~n", [Ref, Protocol, Ret], Logger), Transport:close(Socket), loop(State, CurConns, NbChildren, Sleepers) @@ -136,7 +136,7 @@ loop(State=#state{parent=Parent, ref=Ref, conn_type=ConnType, To ! self(), ranch:log(error, "Ranch listener ~p connection process start failure; " - "~p:start_link/4 crashed with reason: ~p:~999999p~n", + "~p:start_link/3 crashed with reason: ~p:~999999p~n", [Ref, Protocol, Class, Reason], Logger), Transport:close(Socket), loop(State, CurConns, NbChildren, Sleepers) @@ -348,5 +348,5 @@ report_error(_, _, _, _, {shutdown, _}) -> report_error(Logger, Ref, Protocol, Pid, Reason) -> ranch:log(error, "Ranch listener ~p had connection process started with " - "~p:start_link/4 at ~p exit with reason: ~999999p~n", + "~p:start_link/3 at ~p exit with reason: ~999999p~n", [Ref, Protocol, Pid, Reason], Logger). -- cgit v1.2.3