summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-04-08 14:54:05 +0200
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-04-09 10:21:18 +0200
commit6b8407318c23797a881399d0b5d1067b0cf2468e (patch)
tree97bb5b65520efaff5538961a74233a18958fec3c /test
parentccd559495ddb7b1fbaee9451c78655a6d8417ef0 (diff)
downloadrabbitmq-server-git-6b8407318c23797a881399d0b5d1067b0cf2468e.tar.gz
feature_flags_SUITE: Fix Lager configuration
Now that the feature flags subsystem uses its own log category, we need to configure the corresponding handler.
Diffstat (limited to 'test')
-rw-r--r--test/feature_flags_SUITE.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/feature_flags_SUITE.erl b/test/feature_flags_SUITE.erl
index 37c3c5b8f2..7cfda838ed 100644
--- a/test/feature_flags_SUITE.erl
+++ b/test/feature_flags_SUITE.erl
@@ -151,6 +151,7 @@ init_per_testcase(Testcase, Config) ->
TestNumber = rabbit_ct_helpers:testcase_number(Config, ?MODULE, Testcase),
case ?config(tc_group_properties, Config) of
[{name, registry} | _] ->
+ application:set_env(lager, colored, true),
application:set_env(
lager,
handlers, [{lager_console_backend, [{level, debug}]}]),
@@ -159,6 +160,9 @@ init_per_testcase(Testcase, Config) ->
extra_sinks,
[{rabbit_log_lager_event,
[{handlers, [{lager_console_backend, [{level, debug}]}]}]
+ },
+ {rabbit_log_feature_flags_lager_event,
+ [{handlers, [{lager_console_backend, [{level, debug}]}]}]
}]),
lager:start(),
FeatureFlagsFile = filename:join(?config(priv_dir, Config),
@@ -271,7 +275,8 @@ registry_general_usage(_Config) ->
ff_b =>
#{desc => "Feature flag B",
stability => stable}},
- rabbit_feature_flags:inject_test_feature_flags(feature_flags_to_app_attrs(FeatureFlags)),
+ rabbit_feature_flags:inject_test_feature_flags(
+ feature_flags_to_app_attrs(FeatureFlags)),
%% After initialization, it must know about the feature flags
%% declared in this testsuite. They must be disabled however.