Skip to content

Commit 608f78d

Browse files
dumbbellmergify[bot]
authored andcommitted
logging_SUITE: Enable debug logging in exchange tests
[Why] This helps when we have to debug the logging configuration or the testsuite itself. (cherry picked from commit 270aef9)
1 parent 6116dab commit 608f78d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

deps/rabbit/test/logging_SUITE.erl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,15 @@ init_per_testcase(Testcase, Config) ->
146146
%% group will run in the context of that RabbitMQ node.
147147
exchange_output ->
148148
ExchProps = [{enabled, true},
149-
{level, info}] ,
149+
{level, debug}] ,
150150
Config1 = rabbit_ct_helpers:set_config(
151151
Config,
152152
[{rmq_nodes_count, 1},
153153
{rmq_nodename_suffix, Testcase}]),
154154
Config2 = rabbit_ct_helpers:merge_app_env(
155155
Config1,
156156
{rabbit, [{log, [{exchange, ExchProps},
157-
{file, [{level, info}]}]}]}),
157+
{file, [{level, debug}]}]}]}),
158158
rabbit_ct_helpers:run_steps(
159159
Config2,
160160
rabbit_ct_broker_helpers:setup_steps() ++
@@ -910,11 +910,11 @@ logging_to_exchange_works(Config) ->
910910
ExchangeHandler = get_handler_by_id(Handlers, rmq_1_exchange),
911911
?assertNotEqual(undefined, ExchangeHandler),
912912
?assertMatch(
913-
#{level := info,
913+
#{level := debug,
914914
module := rabbit_logger_exchange_h,
915915
filter_default := log,
916-
filters := [{progress_reports, {_, stop}},
917-
{rmqlog_filter, {_, #{global := info}}}],
916+
filters := [{progress_reports, {_, log}},
917+
{rmqlog_filter, {_, #{global := debug}}}],
918918
formatter := {rabbit_logger_text_fmt, _},
919919
config := #{exchange := _}},
920920
ExchangeHandler),

0 commit comments

Comments
 (0)