Skip to content

Commit 30d78a4

Browse files
Do not log every transient dependency when listing plugins
The code path in question is executed every time rabbit_plugins:list/2 (e.g. rabbit_plugins:is_enabled/1) is used, which with some distributed plugins can happen once or several times a minute. Given the maturity of the plugins subsystem, we arguably can drop those messages.
1 parent c34c803 commit 30d78a4

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

deps/rabbit/src/rabbit_plugins.erl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -695,20 +695,6 @@ remove_plugins(Plugins) ->
695695
IsAPlugin =
696696
lists:member(Plugin, ActualPlugins) orelse
697697
lists:member(Name, PluginDeps),
698-
if
699-
IsOTPApp ->
700-
?LOG_DEBUG(
701-
"Plugins discovery: "
702-
"ignoring ~ts, Erlang/OTP application",
703-
[Name]);
704-
not IsAPlugin ->
705-
?LOG_DEBUG(
706-
"Plugins discovery: "
707-
"ignoring ~ts, not a RabbitMQ plugin",
708-
[Name]);
709-
true ->
710-
ok
711-
end,
712698
not (IsOTPApp orelse not IsAPlugin)
713699
end, Plugins).
714700

0 commit comments

Comments
 (0)