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 | 03a464ba0f74c146101f5ad917fdbbaa7fcaa7df (patch) | |
tree | 47fc9edd6cb461c4b070dc020a75ad27bbbf0df4 | |
parent | c07bcfd2c01bc5ae71977cf181b31547cacb34c9 (diff) | |
download | rabbitmq-server-03a464ba0f74c146101f5ad917fdbbaa7fcaa7df.tar.gz |
start log handlers first, so we see the output only once
-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 1f2a3e4e..96c1c1bf 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 |