Skip to content

Commit

Permalink
More logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dcorbacho committed Oct 25, 2024
1 parent f7d93fb commit 0506d14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions deps/rabbit/src/rabbit_amqqueue_process.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1293,8 +1293,10 @@ handle_call({basic_get, ChPid, NoAck, LimiterPid}, _From,
handle_call({basic_consume, NoAck, ChPid, LimiterPid, LimiterActive,
ModeOrPrefetch, ConsumerTag, ExclusiveConsume, Args, OkMsg, ActingUser},
_From, State = #q{consumers = Consumers,
q = Q,
active_consumer = Holder,
single_active_consumer_on = SingleActiveConsumerOn}) ->
rabbit_log:debug("TRACE basic_consume ~p", [amqqueue:get_name(Q)]),
ConsumerRegistration = case SingleActiveConsumerOn of
true ->
case ExclusiveConsume of
Expand Down
1 change: 1 addition & 0 deletions deps/rabbit/src/rabbit_channel.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1690,6 +1690,7 @@ basic_consume(QueueName, NoAck, ConsumerPrefetch, ActualConsumerTag,
limiter = Limiter,
consumer_mapping = ConsumerMapping,
queue_states = QueueStates0}) ->
rabbit_log:debug("TRACE basic_consume ~p", [QueueName]),
case rabbit_amqqueue:with_exclusive_access_or_die(
QueueName, ConnPid,
fun (Q) ->
Expand Down
2 changes: 1 addition & 1 deletion deps/rabbitmq_federation/test/queue_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ publish_expect(Ch, X, Key, Q, Payload) ->

publish_expect(Config, Ch, X, Key, Q, Payload, Timeout) ->
publish(Ch, X, Key, Payload),
ct:pal("Messages in broker ~p ", [rabbit_ct_broker_helpers:rabbitmqctl_list(Config, 0, ["list_queues", "name", "messages", "messages_ready"])]),
ct:pal("Messages in broker ~p ", [rabbit_ct_broker_helpers:rabbitmqctl_list(Config, 0, ["list_queues", "name", "messages", "messages_ready", "consumers"])]),
Status = rabbit_ct_broker_helpers:rpc(Config, 0,
rabbit_federation_status, status, []),
ct:pal("Federation status ~p", [Status]),
Expand Down

0 comments on commit 0506d14

Please sign in to comment.