From 0f36610e9dc2ccb438ec82154ea9f8d63f987391 Mon Sep 17 00:00:00 2001 From: Michal Kuratczyk Date: Mon, 28 Apr 2025 15:16:27 +0200 Subject: [PATCH] Don't log a crash on connection termination --- deps/amqp_client/src/amqp_direct_connection.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deps/amqp_client/src/amqp_direct_connection.erl b/deps/amqp_client/src/amqp_direct_connection.erl index 8c912577ba..5fd0b68404 100644 --- a/deps/amqp_client/src/amqp_direct_connection.erl +++ b/deps/amqp_client/src/amqp_direct_connection.erl @@ -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}.