diff options
| author | Michael Klishin <michael@clojurewerkz.org> | 2017-09-15 18:21:26 -0600 |
|---|---|---|
| committer | Michael Klishin <michael@clojurewerkz.org> | 2017-09-15 18:21:26 -0600 |
| commit | bbaf45f2a80ebd7033ee429826ed2deca6f07929 (patch) | |
| tree | f0920535504092abf14a19d24629332ccb237cee | |
| parent | de295ee77faa87a1b5d0663556bd915867b884ed (diff) | |
| download | rabbitmq-server-git-bbaf45f2a80ebd7033ee429826ed2deca6f07929.tar.gz | |
Further improve logging around enable plugin set changes
| -rw-r--r-- | src/rabbit_plugins.erl | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/rabbit_plugins.erl b/src/rabbit_plugins.erl index 7c1217c543..10906575f1 100644 --- a/src/rabbit_plugins.erl +++ b/src/rabbit_plugins.erl @@ -54,8 +54,19 @@ ensure(FileJustChanged0) -> {disabled, Stop}]), rabbit:stop_apps(Stop), clean_plugins(Stop), - rabbit_log:info("Plugins changed; enabled ~p, disabled ~p~n", - [Start, Stop]), + case {Start, Stop} of + {[], []} -> + ok; + {[], _} -> + rabbit_log:info("Plugins changed; disabled ~p~n", + [Stop]); + {_, []} -> + rabbit_log:info("Plugins changed; enabled ~p~n", + [Start]); + {_, _} -> + rabbit_log:info("Plugins changed; enabled ~p, disabled ~p~n", + [Start, Stop]) + end, {ok, Start, Stop}; _ -> {error, {enabled_plugins_mismatch, FileJustChanged, OurFile}} |
