Don't log a crash on connection termination

This commit is contained in:
Michal Kuratczyk 2025-04-28 15:16:27 +02:00
parent 0ce6ad0f0f
commit 0f36610e9d
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -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}.