diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2012-05-29 15:57:35 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2012-05-29 15:57:35 +0100 |
commit | f2962567856d53255025cb98e39d5632ccce109e (patch) | |
tree | 189ec74be168939673d268fc7718427ceaf7f8e7 | |
parent | 03ad73e631b7d3b003cbfb2ec11a501259b3e74a (diff) | |
download | rabbitmq-server-bug24792.tar.gz |
Don't print the plugin list as output from "rabbitmqctl start_app".bug24792
-rw-r--r-- | src/rabbit.erl | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index 5b212ba2..f69c8d1b 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -644,10 +644,16 @@ force_event_refresh() -> print_plugin_info([]) -> ok; print_plugin_info(Plugins) -> - io:format("~n-- plugins running~n"), - [print_plugin_info(AppName, element(2, application:get_key(AppName, vsn))) - || AppName <- Plugins], - ok. + %% This gets invoked by rabbitmqctl start_app, outside the context + %% of the rabbit application + rabbit_misc:with_local_io( + fun() -> + io:format("~n-- plugins running~n"), + [print_plugin_info( + AppName, element(2, application:get_key(AppName, vsn))) + || AppName <- Plugins], + ok + end). print_plugin_info(Plugin, Vsn) -> Len = 76 - length(Vsn), |