Skip to content

Commit 6e8f51e

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) (cherry picked from commit 608f78d) # Conflicts: # deps/rabbit/test/logging_SUITE.erl
1 parent 87c8562 commit 6e8f51e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

deps/rabbit/test/logging_SUITE.erl

Lines changed: 8 additions & 3 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() ++
@@ -1004,12 +1004,17 @@ logging_to_exchange_works(Config) ->
10041004
ExchangeHandler = get_handler_by_id(Handlers, rmq_1_exchange),
10051005
?assertNotEqual(undefined, ExchangeHandler),
10061006
?assertMatch(
1007-
#{level := info,
1007+
#{level := debug,
10081008
module := rabbit_logger_exchange_h,
10091009
filter_default := log,
1010+
<<<<<<< HEAD
10101011
filters := [{progress_reports, {_, stop}},
10111012
{rmqlog_filter, {_, #{global := info,
10121013
upgrade := none}}}],
1014+
=======
1015+
filters := [{progress_reports, {_, log}},
1016+
{rmqlog_filter, {_, #{global := debug}}}],
1017+
>>>>>>> 608f78d450 (logging_SUITE: Enable debug logging in exchange tests)
10131018
formatter := {rabbit_logger_text_fmt, _},
10141019
config := #{exchange := _}},
10151020
ExchangeHandler),

0 commit comments

Comments
 (0)