From 41936e25e230357b2e57df8524f811aab169a578 Mon Sep 17 00:00:00 2001 From: Luke Bakken Date: Mon, 22 Jan 2024 11:39:27 -0800 Subject: [PATCH 1/2] Add stacktrace Try to figure out where `badarg` is coming from --- deps/rabbit/src/rabbit_quorum_queue.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/rabbit/src/rabbit_quorum_queue.erl b/deps/rabbit/src/rabbit_quorum_queue.erl index a390442c9539..8eef61a1b929 100644 --- a/deps/rabbit/src/rabbit_quorum_queue.erl +++ b/deps/rabbit/src/rabbit_quorum_queue.erl @@ -498,9 +498,9 @@ handle_tick(QName, ok end catch - _:Err -> - rabbit_log:debug("~ts: handle tick failed with ~p", - [rabbit_misc:rs(QName), Err]), + Class:Error:Stacktrace -> + rabbit_log:debug("~ts: handle tick failed with ~tp:~tp:~tp", + [rabbit_misc:rs(QName), Class, Error, Stacktrace]), ok end end). From 2ab889b0a915681de30fdcb654d6eb7c76595344 Mon Sep 17 00:00:00 2001 From: Luke Bakken Date: Mon, 22 Jan 2024 15:03:07 -0800 Subject: [PATCH 2/2] Fix formatter crash when Port is `undefined` --- deps/rabbit/src/rabbit_epmd_monitor.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/rabbit/src/rabbit_epmd_monitor.erl b/deps/rabbit/src/rabbit_epmd_monitor.erl index afb2110b7bf2..80ea39d54563 100644 --- a/deps/rabbit/src/rabbit_epmd_monitor.erl +++ b/deps/rabbit/src/rabbit_epmd_monitor.erl @@ -87,7 +87,7 @@ handle_port_please(init, noport, Me, Port) -> rabbit_log:info("epmd does not know us, re-registering as ~ts", [Me]), {ok, Port}; handle_port_please(check, noport, Me, Port) -> - rabbit_log:warning("epmd does not know us, re-registering ~ts at port ~b", [Me, Port]), + rabbit_log:warning("epmd does not know us, re-registering ~ts at port ~tp", [Me, Port]), {ok, Port}; handle_port_please(_, closed, _Me, Port) -> rabbit_log:error("epmd monitor failed to retrieve our port from epmd: closed"),