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 | c67ca33aaf86f4f424e29b1a9e98255a43424069 (patch) | |
tree | 8310041eb751d5038edc8ac6f4f91c44e8abde01 | |
parent | c87507b5a8d2e9d37bddbb6f40bb7e09ceaf3f11 (diff) | |
download | rabbitmq-server-c67ca33aaf86f4f424e29b1a9e98255a43424069.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 669b4053..f735fbea 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), |