Don't log a crash on connection termination
This commit is contained in:
parent
0ce6ad0f0f
commit
0f36610e9d
|
|
@ -72,7 +72,8 @@ handle_message({'DOWN', _MRef, process, _ConnSup, shutdown}, State) ->
|
|||
handle_message({'DOWN', _MRef, process, _ConnSup, Reason}, State) ->
|
||||
{stop, {remote_node_down, Reason}, State};
|
||||
handle_message({'EXIT', Pid, Reason}, State) ->
|
||||
{stop, rabbit_misc:format("stopping because dependent process ~tp died: ~tp", [Pid, Reason]), State};
|
||||
?LOG_INFO("stopping because dependent process ~tp died: ~tp", [Pid, Reason]),
|
||||
{stop, normal, State};
|
||||
handle_message(Msg, State) ->
|
||||
{stop, {unexpected_msg, Msg}, State}.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue