Skip to content

Commit 9148f8d

Browse files
Merge pull request #3644 from rabbitmq/mergify/bp/v3.9.x/pr-3643
Turn down logging from queue rebalancing (backport #3643)
2 parents 4845e3a + 8efaeea commit 9148f8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deps/rabbit/src/rabbit_amqqueue.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,11 +511,11 @@ maybe_migrate(ByNode, MaxQueuesDesired, [N | Nodes]) ->
511511
{not_migrated, update_not_migrated_queue(N, Queue, Queues, ByNode)};
512512
_ ->
513513
[{Length, Destination} | _] = sort_by_number_of_queues(Candidates, ByNode),
514-
rabbit_log:warning("Migrating queue ~p from node ~p with ~p queues to node ~p with ~p queues",
514+
rabbit_log:info("Migrating queue ~p from node ~p with ~p queues to node ~p with ~p queues",
515515
[Name, N, length(All), Destination, Length]),
516516
case Module:transfer_leadership(Q, Destination) of
517517
{migrated, NewNode} ->
518-
rabbit_log:warning("Queue ~p migrated to ~p", [Name, NewNode]),
518+
rabbit_log:info("Queue ~p migrated to ~p", [Name, NewNode]),
519519
{migrated, update_migrated_queue(Destination, N, Queue, Queues, ByNode)};
520520
{not_migrated, Reason} ->
521521
rabbit_log:warning("Error migrating queue ~p: ~p", [Name, Reason]),
@@ -527,7 +527,7 @@ maybe_migrate(ByNode, MaxQueuesDesired, [N | Nodes]) ->
527527
"Do nothing", [N, length(All)]),
528528
maybe_migrate(ByNode, MaxQueuesDesired, Nodes);
529529
All ->
530-
rabbit_log:warning("Node ~p only contains ~p queues, do nothing",
530+
rabbit_log:debug("Node ~p only contains ~p queues, do nothing",
531531
[N, length(All)]),
532532
maybe_migrate(ByNode, MaxQueuesDesired, Nodes)
533533
end.

0 commit comments

Comments
 (0)