diff options
-rw-r--r-- | src/rabbit_node_monitor.erl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/rabbit_node_monitor.erl b/src/rabbit_node_monitor.erl index 02aac125..e6069387 100644 --- a/src/rabbit_node_monitor.erl +++ b/src/rabbit_node_monitor.erl @@ -536,8 +536,16 @@ run_outside_applications(Fun) -> %% Ensure only one such process at a time, the %% exit(badarg) is harmless if one is already running try register(rabbit_outside_app_process, self()) of - true -> Fun() - catch error:badarg -> ok + true -> + try + Fun() + catch _:E -> + rabbit_log:error( + "rabbit_outside_app_process:~n~p~n~p~n", + [E, erlang:get_stacktrace()]) + end + catch error:badarg -> + ok end end). |