Skip to content

Commit 669a97a

Browse files
committed
stream reader: rabbit_log_connection -> ?LOG_
1 parent a0f8944 commit 669a97a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

deps/rabbitmq_stream/src/rabbit_stream_reader.erl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -699,9 +699,9 @@ open(info, {OK, S, Data},
699699
connection_state = State1}};
700700
failure ->
701701
_ = demonitor_all_streams(Connection),
702-
rabbit_log_connection:info("Force closing stream connection ~tp because of "
703-
"transition to invalid state",
704-
[self()]),
702+
?LOG_INFO("Force closing stream connection ~tp because of "
703+
"transition to invalid state",
704+
[self()]),
705705
{stop, {shutdown, <<"Invalid state">>}};
706706
_ ->
707707
State2 =
@@ -2775,21 +2775,21 @@ complete_secret_update(NewUser = #user{username = Username},
27752775
virtual_host = VH} = C1, S1) ->
27762776
notify_auth_result(Username, user_authentication_success, [], C1, S1),
27772777
rabbit_core_metrics:auth_attempt_succeeded(Host, Username, stream),
2778-
rabbit_log_connection:debug("Stream connection has successfully checked updated secret (token) for username '~ts'",
2779-
[Username]),
2778+
?LOG_DEBUG("Stream connection has successfully checked updated secret (token) for username '~ts'",
2779+
[Username]),
27802780
try
2781-
rabbit_log_connection:debug("Stream connection: will verify virtual host access after secret (token) update"),
2781+
?LOG_DEBUG("Stream connection: will verify virtual host access after secret (token) update"),
27822782
rabbit_access_control:check_vhost_access(NewUser, VH, {socket, S}, #{}),
2783-
rabbit_log_connection:debug("Stream connection: successfully re-verified virtual host access"),
2783+
?LOG_DEBUG("Stream connection: successfully re-verified virtual host access"),
27842784

27852785
{C1#stream_connection{user = NewUser,
27862786
authentication_state = done,
27872787
connection_step = authenticated},
27882788
{sasl_authenticate, ?RESPONSE_CODE_OK,
27892789
<<>>}}
27902790
catch exit:#amqp_error{explanation = Explanation} ->
2791-
rabbit_log_connection:warning("Stream connection no longer has the permissions to access its target virtual host ('~ts') after a secret (token) update: ~ts",
2792-
[VH, Explanation]),
2791+
?LOG_WARNING("Stream connection no longer has the permissions to access its target virtual host ('~ts') after a secret (token) update: ~ts",
2792+
[VH, Explanation]),
27932793
silent_close_delay(),
27942794
{C1#stream_connection{connection_step = failure},
27952795
{sasl_authenticate, ?RESPONSE_VHOST_ACCESS_FAILURE, <<>>}}

0 commit comments

Comments
 (0)