@@ -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,29 +910,30 @@ 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 ),
921921 #{config :=
922922 #{exchange := # resource {name = XName } = Exchange }} = ExchangeHandler ,
923923
924924 % % Wait for the expected exchange to be automatically declared.
925- lists :any (
926- fun (_ ) ->
927- Ret = rabbit_ct_broker_helpers :rpc (
928- Config , 0 ,
929- rabbit_exchange , lookup , [Exchange ]),
930- case Ret of
931- {ok , _ } -> true ;
932- _ -> timer :sleep (500 ),
933- false
934- end
935- end , lists :seq (1 , 20 )),
925+ ? assert (
926+ lists :any (
927+ fun (_ ) ->
928+ Ret = rabbit_ct_broker_helpers :rpc (
929+ Config , 0 ,
930+ rabbit_exchange , lookup , [Exchange ]),
931+ case Ret of
932+ {ok , _ } -> true ;
933+ _ -> timer :sleep (500 ),
934+ false
935+ end
936+ end , lists :seq (1 , 20 ))),
936937
937938 % % Declare a queue to collect all logged messages.
938939 {Conn , Chan } = rabbit_ct_client_helpers :open_connection_and_channel (
@@ -941,7 +942,7 @@ logging_to_exchange_works(Config) ->
941942 ? assertMatch (
942943 # 'queue.declare_ok' {},
943944 amqp_channel :call (Chan , # 'queue.declare' {queue = QName ,
944- durable = false })),
945+ durable = true })),
945946 ? assertMatch (
946947 # 'queue.bind_ok' {},
947948 amqp_channel :call (Chan , # 'queue.bind' {queue = QName ,
0 commit comments