diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2014-06-09 17:57:13 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2014-06-09 17:57:13 +0100 |
| commit | 23b7693b359ae58db7e9b7f04b8d29e2963c6317 (patch) | |
| tree | b8e51d5520064039f64bddddbf2e307d58129964 /src | |
| parent | 22880bea834370b13c83efe74760bceca9514401 (diff) | |
| download | rabbitmq-server-git-23b7693b359ae58db7e9b7f04b8d29e2963c6317.tar.gz | |
Tweak text a bit more.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_plugins_main.erl | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/rabbit_plugins_main.erl b/src/rabbit_plugins_main.erl index 555ed5902c..78313eee26 100644 --- a/src/rabbit_plugins_main.erl +++ b/src/rabbit_plugins_main.erl @@ -320,14 +320,21 @@ action_change0(false, Node, _Old, New) -> rpc_call(Node, rabbit_plugins, ensure, [New]). rpc_call(Node, Mod, Fun, Args) -> - io:format("Checking plugin configuration on ~p...", [Node]), + io:format("Applying plugin configuration to ~s...", [Node]), case rpc:call(Node, Mod, Fun, Args) of {ok, [], []} -> - io:format(" ok.~n", []); + io:format(" nothing to do.~n", []); + {ok, Start, []} -> + io:format(" started ~b plugin~s.~n", [length(Start), plur(Start)]); + {ok, [], Stop} -> + io:format(" stopped ~b plugin~s.~n", [length(Stop), plur(Stop)]); {ok, Start, Stop} -> - io:format(" started ~p, stopped ~p.~n", - [length(Start), length(Stop)]); + io:format(" started ~b and stopped ~b plugin~s.~n", + [length(Start), length(Stop), plur(Start ++ Stop)]); {badrpc, _} = Error -> io:format(" failed.~n", []), Error end. + +plur([_]) -> ""; +plur(_) -> "s". |
