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 | 43378e7f842d7eae03849e0d4399971ca2fdfbb6 (patch) | |
| tree | 85c28db9a83e1840c36f649ef3db50d7a1ac89f2 | |
| parent | 4e48ea6f2589615afb99113a8576427d8b6c8019 (diff) | |
| download | rabbitmq-server-git-43378e7f842d7eae03849e0d4399971ca2fdfbb6.tar.gz | |
Just in case something goes wrong in our weird unsupervised process, log it.
| -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 02aac12568..e606938759 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). |
