diff options
author | chenduo <[email protected]> | 2019-10-14 18:04:14 +0800 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-10-14 12:51:50 +0200 |
commit | 5c530ba58d142507f4c454bdfba00392d02af3ee (patch) | |
tree | 13ff5098ef95145eff524a1406ae8f67b399a101 | |
parent | d44e7a16f7d2823cc658e39b5d953ba0850e47ba (diff) | |
download | ranch-5c530ba58d142507f4c454bdfba00392d02af3ee.tar.gz ranch-5c530ba58d142507f4c454bdfba00392d02af3ee.tar.bz2 ranch-5c530ba58d142507f4c454bdfba00392d02af3ee.zip |
Fix log on connection process exit
-rw-r--r-- | src/ranch_conns_sup.erl | 6 |
1 files 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). |