Skip to content

Commit 3dea004

Browse files
[skip ci] Add module name to the FF debug log (#14357) (#14358)
Without this change, the logs looked confusing: ``` [debug] <0.217.0> Feature flags: application `rabbit` has 1 feature flags (including deprecated features) [debug] <0.217.0> Feature flags: application `rabbit` has 23 feature flags (including deprecated features) [debug] <0.217.0> Feature flags: application `rabbit` has 1 feature flags (including deprecated features) [debug] <0.217.0> Feature flags: application `rabbit` has 1 feature flags (including deprecated features) [debug] <0.217.0> Feature flags: application `rabbit` has 1 feature flags (including deprecated features) [debug] <0.217.0> Feature flags: application `rabbit` has 1 feature flags (including deprecated features) [debug] <0.217.0> Feature flags: application `rabbit` has 1 feature flags (including deprecated features) [debug] <0.217.0> Feature flags: application `rabbit` has 2 feature flags (including deprecated features) ``` it wasn't clear why the same app was queried multiple times with different results. (cherry picked from commit 87099e8) Co-authored-by: Michal Kuratczyk <michal.kuratczyk@broadcom.com>
1 parent 6b416b4 commit 3dea004

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deps/rabbit/src/rabbit_feature_flags.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,12 +1000,12 @@ query_supported_feature_flags() ->
10001000
AllFeatureFlags :: feature_flags().
10011001
%% @private
10021002

1003-
prepare_queried_feature_flags([{App, _Module, Attributes} | Rest],
1003+
prepare_queried_feature_flags([{App, Module, Attributes} | Rest],
10041004
AllFeatureFlags) ->
10051005
?LOG_DEBUG(
10061006
"Feature flags: application `~ts` has ~b feature flags (including "
1007-
"deprecated features)",
1008-
[App, length(Attributes)],
1007+
"deprecated features) in module `~ts`",
1008+
[App, length(Attributes), Module],
10091009
#{domain => ?RMQLOG_DOMAIN_FEAT_FLAGS}),
10101010
AllFeatureFlags1 = lists:foldl(
10111011
fun({FeatureName, FeatureProps}, AllFF) ->

0 commit comments

Comments
 (0)