Merge pull request #14454 from rabbitmq/md/first-time-ff-log-levels

rabbit_ff_controller: Raise log levels of first-time boot messages
This commit is contained in:
Michael Klishin 2025-08-28 20:24:02 -04:00 committed by GitHub
commit 676698a233
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -698,7 +698,7 @@ enable_task(FeatureNames) ->
enable_default_task() ->
case get_forced_feature_flag_names() of
{ok, undefined} ->
?LOG_DEBUG(
?LOG_INFO(
"Feature flags: starting an unclustered node for the first "
"time: all stable feature flags will be enabled by default",
#{domain => ?RMQLOG_DOMAIN_FEAT_FLAGS}),
@ -706,14 +706,14 @@ enable_default_task() ->
StableFeatureNames = get_stable_feature_flags(Inventory),
enable_many(Inventory, StableFeatureNames);
{ok, []} ->
?LOG_DEBUG(
?LOG_INFO(
"Feature flags: starting an unclustered node for the first "
"time: all feature flags are forcibly left disabled from "
"the $RABBITMQ_FEATURE_FLAGS environment variable",
#{domain => ?RMQLOG_DOMAIN_FEAT_FLAGS}),
ok;
{ok, FeatureNames} when is_list(FeatureNames) ->
?LOG_DEBUG(
?LOG_INFO(
"Feature flags: starting an unclustered node for the first "
"time: only the following feature flags specified in the "
"$RABBITMQ_FEATURE_FLAGS environment variable will be enabled: "
@ -723,7 +723,7 @@ enable_default_task() ->
{ok, Inventory} = collect_inventory_on_nodes([node()]),
enable_many(Inventory, FeatureNames);
{ok, {rel, Plus, Minus}} ->
?LOG_DEBUG(
?LOG_INFO(
"Feature flags: starting an unclustered node for the first "
"time: all stable feature flags will be enabled, after "
"applying changes from $RABBITMQ_FEATURE_FLAGS: adding ~0tp, "
@ -750,7 +750,7 @@ enable_default_task() ->
{error, unsupported}
end;
{error, syntax_error_in_envvar} = Error ->
?LOG_DEBUG(
?LOG_ERROR(
"Feature flags: invalid mix of `feature_flag` and "
"`+/-feature_flag` in $RABBITMQ_FEATURE_FLAGS",
#{domain => ?RMQLOG_DOMAIN_FEAT_FLAGS}),