Skip to content

Commit eadbfd4

Browse files
mkuratczykmergify[bot]
authored andcommitted
Don't log a crash on connection termination
(cherry picked from commit 0f36610)
1 parent f21a32d commit eadbfd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

deps/amqp_client/src/amqp_direct_connection.erl

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ handle_message({'DOWN', _MRef, process, _ConnSup, shutdown}, State) ->
7272
handle_message({'DOWN', _MRef, process, _ConnSup, Reason}, State) ->
7373
{stop, {remote_node_down, Reason}, State};
7474
handle_message({'EXIT', Pid, Reason}, State) ->
75-
{stop, rabbit_misc:format("stopping because dependent process ~tp died: ~tp", [Pid, Reason]), State};
75+
?LOG_INFO("stopping because dependent process ~tp died: ~tp", [Pid, Reason]),
76+
{stop, normal, State};
7677
handle_message(Msg, State) ->
7778
{stop, {unexpected_msg, Msg}, State}.
7879

0 commit comments

Comments
 (0)