Skip to content

Commit 17b0820

Browse files
Merge pull request #3643 from rabbitmq/rebalance-logging
Turn down logging from queue rebalancing (cherry picked from commit 8827d51) Conflicts: deps/rabbit/src/rabbit_amqqueue.erl
1 parent de0d3b1 commit 17b0820

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
@@ -602,11 +602,11 @@ maybe_migrate(ByNode, MaxQueuesDesired, [N | Nodes]) ->
602602
{not_migrated, update_not_migrated_queue(N, Queue, Queues, ByNode)};
603603
_ ->
604604
[{Length, Destination} | _] = sort_by_number_of_queues(Candidates, ByNode),
605-
_ = rabbit_log:warning("Migrating queue ~p from node ~p with ~p queues to node ~p with ~p queues",
605+
_ = rabbit_log:info("Migrating queue ~p from node ~p with ~p queues to node ~p with ~p queues",
606606
[Name, N, length(All), Destination, Length]),
607607
case Module:transfer_leadership(Q, Destination) of
608608
{migrated, NewNode} ->
609-
_ = rabbit_log:warning("Queue ~p migrated to ~p", [Name, NewNode]),
609+
_ = rabbit_log:info("Queue ~p migrated to ~p", [Name, NewNode]),
610610
{migrated, update_migrated_queue(Destination, N, Queue, Queues, ByNode)};
611611
{not_migrated, Reason} ->
612612
_ = rabbit_log:warning("Error migrating queue ~p: ~p", [Name, Reason]),
@@ -618,7 +618,7 @@ maybe_migrate(ByNode, MaxQueuesDesired, [N | Nodes]) ->
618618
"Do nothing", [N, length(All)]),
619619
maybe_migrate(ByNode, MaxQueuesDesired, Nodes);
620620
All ->
621-
_ = rabbit_log:warning("Node ~p only contains ~p queues, do nothing",
621+
_ = rabbit_log:debug("Node ~p only contains ~p queues, do nothing",
622622
[N, length(All)]),
623623
maybe_migrate(ByNode, MaxQueuesDesired, Nodes)
624624
end.

0 commit comments

Comments
 (0)