@@ -269,8 +269,6 @@ apply(#command_activate_consumer{vhost = VirtualHost,
269
269
stream = Stream ,
270
270
consumer_name = ConsumerName },
271
271
#? MODULE {groups = StreamGroups0 } = State0 ) ->
272
- rabbit_log :debug (" Activating consumer on ~tp , group ~p " ,
273
- [Stream , ConsumerName ]),
274
272
{G , Eff } =
275
273
case lookup_group (VirtualHost , Stream , ConsumerName , StreamGroups0 ) of
276
274
undefined ->
@@ -281,11 +279,7 @@ apply(#command_activate_consumer{vhost = VirtualHost,
281
279
Group ->
282
280
# consumer {pid = Pid , subscription_id = SubId } =
283
281
evaluate_active_consumer (Group ),
284
- rabbit_log :debug (" New active consumer on ~tp , group ~tp " ++
285
- " is ~tp from ~tp " ,
286
- [Stream , ConsumerName , SubId , Pid ]),
287
- Group1 =
288
- update_consumer_state_in_group (Group , Pid , SubId , true ),
282
+ Group1 = update_consumer_state_in_group (Group , Pid , SubId , true ),
289
283
{Group1 , [notify_consumer_effect (Pid , SubId , Stream , ConsumerName , true )]}
290
284
end ,
291
285
StreamGroups1 =
@@ -575,10 +569,6 @@ do_register_consumer(VirtualHost,
575
569
% % the current active stays the same
576
570
{G1 , []};
577
571
_ ->
578
- rabbit_log :debug (" SAC consumer registration: " ++
579
- " active consumer change on stream ~tp , group ~tp . " ++
580
- " Notifying ~tp from ~tp it is no longer active." ,
581
- [Stream , ConsumerName , ActSubId , ActPid ]),
582
572
% % there's a change, telling the active it's not longer active
583
573
{update_consumer_state_in_group (G1 ,
584
574
ActPid ,
@@ -592,9 +582,6 @@ do_register_consumer(VirtualHost,
592
582
true )]}
593
583
end ;
594
584
false ->
595
- rabbit_log :debug (" SAC consumer registration: no active consumer on stream ~tp , group ~tp . " ++
596
- " Likely waiting for a response from former active consumer." ,
597
- [Stream , ConsumerName ]),
598
585
% % no active consumer in the (non-empty) group,
599
586
% % we are waiting for the reply of a former active
600
587
{G1 , []}
@@ -640,11 +627,6 @@ handle_consumer_removal(Group0, Consumer, Stream, ConsumerName) ->
640
627
% % the current active stays the same
641
628
{Group0 , []};
642
629
_ ->
643
- rabbit_log :debug (" SAC consumer removal: " ++
644
- " active consumer change on stream ~tp , group ~tp . " ++
645
- " Notifying ~tp from ~tp it is no longer active." ,
646
- [Stream , ConsumerName , ActSubId , ActPid ]),
647
-
648
630
% % there's a change, telling the active it's not longer active
649
631
{update_consumer_state_in_group (Group0 ,
650
632
ActPid ,
@@ -659,17 +641,10 @@ handle_consumer_removal(Group0, Consumer, Stream, ConsumerName) ->
659
641
% % the active one is going away, picking a new one
660
642
# consumer {pid = P , subscription_id = SID } =
661
643
evaluate_active_consumer (Group0 ),
662
- rabbit_log :debug (" SAC consumer removal: " ++
663
- " active consumer change on stream ~tp , group ~tp . " ++
664
- " Notifying ~tp from ~tp it is the new active consumer." ,
665
- [Stream , ConsumerName , SID , P ]),
666
644
{update_consumer_state_in_group (Group0 , P , SID , true ),
667
645
[notify_consumer_effect (P , SID ,
668
646
Stream , ConsumerName , true )]};
669
647
false ->
670
- rabbit_log :debug (" SAC consumer removal: no active consumer on stream ~tp , group ~tp . " ++
671
- " Likely waiting for a response from former active consumer." ,
672
- [Stream , ConsumerName ]),
673
648
% % no active consumer in the (non-empty) group,
674
649
% % we are waiting for the reply of a former active
675
650
{Group0 , []}
0 commit comments