Skip to content

Commit da70f1a

Browse files
committed
Don't log a crash on connection termination
1 parent 7c73c46 commit da70f1a

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)