Skip to content

Commit d4976d9

Browse files
committed
rabbit_log -> logger in dynamic calls
1 parent 930a887 commit d4976d9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

deps/rabbit/src/rabbit_fifo_dlx.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ update_config(at_least_once, at_least_once, _, State) ->
316316
update_config(SameDLH, SameDLH, _, State) ->
317317
{State, []};
318318
update_config(OldDLH, NewDLH, QRes, State0) ->
319-
LogOnLeader = {mod_call, rabbit_log, debug,
319+
LogOnLeader = {mod_call, logger, debug,
320320
["Switching dead_letter_handler from ~tp to ~tp for ~ts",
321321
[OldDLH, NewDLH, rabbit_misc:rs(QRes)]]},
322322
{State1, Effects0} = switch_from(OldDLH, QRes, State0),
@@ -330,7 +330,7 @@ switch_from(at_least_once, QRes, State) ->
330330
ensure_worker_terminated(State),
331331
{Num, Bytes} = stat(State),
332332
%% Log only on leader.
333-
{init(), [{mod_call, rabbit_log, info,
333+
{init(), [{mod_call, logger, info,
334334
["Deleted ~b dead-lettered messages (with total messages size of ~b bytes) in ~ts",
335335
[Num, Bytes, rabbit_misc:rs(QRes)]]}]};
336336
switch_from(_, _, State) ->

deps/rabbit/test/rabbit_fifo_dlx_SUITE.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ switch_strategies(_Config) ->
135135
Handler1 = at_least_once,
136136
%% Switching from undefined to at_least_once should start dlx consumer.
137137
{S1, Effects0} = rabbit_fifo_dlx:update_config(Handler0, Handler1, QRes, S0),
138-
?assertEqual([{mod_call, rabbit_log, debug,
138+
?assertEqual([{mod_call, logger, debug,
139139
["Switching dead_letter_handler from ~tp to ~tp for ~ts",
140140
[undefined, at_least_once, "queue 'blah' in vhost '/'"]]},
141141
{aux, {dlx, setup}}],
@@ -150,10 +150,10 @@ switch_strategies(_Config) ->
150150

151151
%% Switching from at_least_once to undefined should terminate dlx consumer.
152152
{S5, Effects} = rabbit_fifo_dlx:update_config(Handler1, Handler0, QRes, S4),
153-
?assertEqual([{mod_call, rabbit_log, debug,
153+
?assertEqual([{mod_call, logger, debug,
154154
["Switching dead_letter_handler from ~tp to ~tp for ~ts",
155155
[at_least_once, undefined, "queue 'blah' in vhost '/'"]]},
156-
{mod_call, rabbit_log, info,
156+
{mod_call, logger, info,
157157
["Deleted ~b dead-lettered messages (with total messages size of ~b bytes) in ~ts",
158158
[1, 1, "queue 'blah' in vhost '/'"]]}],
159159
Effects),

0 commit comments

Comments
 (0)