diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2014-10-14 15:22:54 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2014-10-14 15:22:54 +0100 |
commit | 174a27e86d90e499eabccc00a05a889639ad8764 (patch) | |
tree | 85c28db9a83e1840c36f649ef3db50d7a1ac89f2 | |
parent | 66f0837ccedcfc4c46d21c6d7cf428c5f0170957 (diff) | |
download | rabbitmq-server-174a27e86d90e499eabccc00a05a889639ad8764.tar.gz |
Just in case something goes wrong in our weird unsupervised process, log it.bug26368
-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). |