diff options
| author | Tim Watson <tim@rabbitmq.com> | 2012-10-05 14:27:45 +0100 |
|---|---|---|
| committer | Tim Watson <tim@rabbitmq.com> | 2012-10-05 14:27:45 +0100 |
| commit | 9ab055a4caebc30f030eb6bd47238ec8a59b8f3c (patch) | |
| tree | 47fc9edd6cb461c4b070dc020a75ad27bbbf0df4 /src | |
| parent | c5a4437bbe65dafe4117d6528c669386f7bb64fe (diff) | |
| download | rabbitmq-server-git-9ab055a4caebc30f030eb6bd47238ec8a59b8f3c.tar.gz | |
start log handlers first, so we see the output only once
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index 1f2a3e4eab..96c1c1bf9b 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -300,11 +300,11 @@ start() -> %% We do not want to HiPE compile or upgrade %% mnesia after just restarting the app ok = ensure_application_loaded(), + ok = ensure_working_log_handlers(), apply_post_boot_step( fun rabbit_node_monitor:prepare_cluster_status_files/0), apply_post_boot_step( fun rabbit_mnesia:check_cluster_consistency/0), - ok = ensure_working_log_handlers(), ok = app_utils:start_applications( app_startup_order(), fun handle_app_error/2), ok = print_plugin_info(rabbit_plugins:active()) @@ -314,9 +314,9 @@ boot() -> start_it(fun() -> ok = ensure_application_loaded(), maybe_hipe_compile(), + ok = ensure_working_log_handlers(), apply_post_boot_step( fun rabbit_node_monitor:prepare_cluster_status_files/0), - ok = ensure_working_log_handlers(), ok = rabbit_upgrade:maybe_upgrade_mnesia(), %% It's important that the consistency check happens after %% the upgrade, since if we are a secondary node the |
