Skip to content

Commit d2f552f

Browse files
committed
use ?LOG_WARNING instead of rabbit_log:warning/{1,2}
1 parent a271270 commit d2f552f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

deps/rabbit/src/rabbit_quorum_queue.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2112,7 +2112,7 @@ force_vhost_queues_shrink_member_to_current_member(VHost) when is_binary(VHost)
21122112

21132113
force_vhost_queues_shrink_member_to_current_member(VHost, QueueSpec)
21142114
when is_binary(VHost), is_binary(QueueSpec) ->
2115-
rabbit_log:warning("Shrinking all quorum queues matching '~ts' in vhost '~ts' to a single node: ~ts",
2115+
?LOG_WARNING("Shrinking all quorum queues matching '~ts' in vhost '~ts' to a single node: ~ts",
21162116
[QueueSpec, VHost, node()]),
21172117
ListQQs = fun() -> rabbit_amqqueue:list(VHost) end,
21182118
force_all_queues_shrink_member_to_current_member(ListQQs, QueueSpec).
@@ -2121,7 +2121,7 @@ force_all_queues_shrink_member_to_current_member() ->
21212121
force_all_queues_shrink_member_to_current_member(<<".*">>).
21222122

21232123
force_all_queues_shrink_member_to_current_member(QueueSpec) when is_binary(QueueSpec) ->
2124-
rabbit_log:warning("Shrinking all quorum queues matching '~ts' to a single node: ~ts",
2124+
?LOG_WARNING("Shrinking all quorum queues matching '~ts' to a single node: ~ts",
21252125
[QueueSpec, node()]),
21262126
ListQQs = fun() -> rabbit_amqqueue:list() end,
21272127
force_all_queues_shrink_member_to_current_member(ListQQs, QueueSpec).
@@ -2132,7 +2132,7 @@ force_all_queues_shrink_member_to_current_member(ListQQFun, QueueSpec) when is_f
21322132
QName = amqqueue:get_name(Q),
21332133
{RaName, _} = amqqueue:get_pid(Q),
21342134
OtherNodes = lists:delete(Node, get_nodes(Q)),
2135-
rabbit_log:warning("Shrinking queue '~ts' to a single node: ~ts", [rabbit_misc:rs(QName), Node]),
2135+
?LOG_WARNING("Shrinking queue '~ts' to a single node: ~ts", [rabbit_misc:rs(QName), Node]),
21362136
ok = ra_server_proc:force_shrink_members_to_current_member({RaName, Node}),
21372137
Fun = fun (QQ) ->
21382138
TS0 = amqqueue:get_type_state(QQ),
@@ -2144,7 +2144,7 @@ force_all_queues_shrink_member_to_current_member(ListQQFun, QueueSpec) when is_f
21442144
end || Q <- ListQQFun(),
21452145
amqqueue:get_type(Q) == ?MODULE,
21462146
is_match(get_resource_name(amqqueue:get_name(Q)), QueueSpec)],
2147-
rabbit_log:warning("Shrinking finished"),
2147+
?LOG_WARNING("Shrinking finished"),
21482148
ok.
21492149

21502150
force_checkpoint_on_queue(QName) ->

0 commit comments

Comments
 (0)