From ce776fc95953a18c72f57ee220de90175c2e5318 Mon Sep 17 00:00:00 2001 From: Michal Kuratczyk Date: Fri, 2 May 2025 14:38:40 +0200 Subject: [PATCH] Fix formatter crash in rabbit_reader (cherry picked from commit 435274bc83f22fce9f77645c7e07991a878e7c0d) --- deps/rabbit/src/rabbit_reader.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/rabbit/src/rabbit_reader.erl b/deps/rabbit/src/rabbit_reader.erl index c4f3110d3812..e89595e469b3 100644 --- a/deps/rabbit/src/rabbit_reader.erl +++ b/deps/rabbit/src/rabbit_reader.erl @@ -421,12 +421,12 @@ log_connection_exception(Severity, Name, Duration, {connection_closed_abruptly, log_connection_exception_with_severity(Severity, Fmt, [self(), Name, Duration]); %% failed connection.tune negotiations -log_connection_exception(Severity, Name, Duration, {handshake_error, tuning, +log_connection_exception(Severity, Name, _Duration, {handshake_error, tuning, {exit, #amqp_error{explanation = Explanation}, _Method, _Stacktrace}}) -> Fmt = "closing AMQP connection ~tp (~ts):~n" "failed to negotiate connection parameters: ~ts", - log_connection_exception_with_severity(Severity, Fmt, [self(), Name, Duration, Explanation]); + log_connection_exception_with_severity(Severity, Fmt, [self(), Name, Explanation]); log_connection_exception(Severity, Name, Duration, {sasl_required, ProtocolId}) -> Fmt = "closing AMQP 1.0 connection (~ts, duration: '~ts'): RabbitMQ requires SASL " "security layer (expected protocol ID 3, but client sent protocol ID ~b)",