diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2012-05-14 16:15:03 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2012-05-14 16:15:03 +0100 |
| commit | 9194ab8cba39c7aec312ec7e9ff0eea3a6744af6 (patch) | |
| tree | 8310041eb751d5038edc8ac6f4f91c44e8abde01 | |
| parent | 9e803afc5cbb04b76fc84dc0b2ae738ef9d3a868 (diff) | |
| download | rabbitmq-server-git-9194ab8cba39c7aec312ec7e9ff0eea3a6744af6.tar.gz | |
Make the list of plugins look a bit more like the boot steps.
| -rw-r--r-- | src/rabbit.erl | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index 669b405380..f735fbea80 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -640,11 +640,14 @@ force_event_refresh() -> %% misc print_plugin_info(Plugins) -> - io:format("~w plugins activated:~n", [length(Plugins)]), - [io:format("* ~s-~s~n", [AppName, - element(2, application:get_key(AppName, vsn))]) - || AppName <- Plugins], - io:nl(). + io:format("~n-- plugins running~n"), + [print_plugin_info(AppName, element(2, application:get_key(AppName, vsn))) + || AppName <- Plugins], + ok. + +print_plugin_info(Plugin, Vsn) -> + Len = 76 - length(Vsn), + io:format("~-" ++ integer_to_list(Len) ++ "s ~s~n", [Plugin, Vsn]). erts_version_check() -> FoundVer = erlang:system_info(version), |
