Skip to content

Commit dabacf5

Browse files
michaelklishinmergify[bot]
authored andcommitted
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. (cherry picked from commit 30d78a4) # Conflicts: # deps/rabbit/src/rabbit_plugins.erl
1 parent c82efd8 commit dabacf5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

deps/rabbit/src/rabbit_plugins.erl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ remove_plugins(Plugins) ->
694694
IsAPlugin =
695695
lists:member(Plugin, ActualPlugins) orelse
696696
lists:member(Name, PluginDeps),
697+
<<<<<<< HEAD
697698
if
698699
IsOTPApp ->
699700
rabbit_log:debug(
@@ -708,6 +709,8 @@ remove_plugins(Plugins) ->
708709
true ->
709710
ok
710711
end,
712+
=======
713+
>>>>>>> 30d78a490 (Do not log every transient dependency when listing plugins)
711714
not (IsOTPApp orelse not IsAPlugin)
712715
end, Plugins).
713716

0 commit comments

Comments
 (0)