Skip to content

Commit 7cf1b3f

Browse files
michaelklishinmergify[bot]
authored andcommitted
Log virtual host name if updated token lacks the permissions for it #14403
(cherry picked from commit a9f7bf1)
1 parent 9f8c6cd commit 7cf1b3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbitmq_stream/src/rabbit_stream_reader.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2807,8 +2807,8 @@ complete_secret_update(NewUser = #user{username = Username},
28072807
{sasl_authenticate, ?RESPONSE_CODE_OK,
28082808
<<>>}}
28092809
catch exit:#amqp_error{explanation = Explanation} ->
2810-
?LOG_WARNING("Stream connection no longer has the permissions to access its target virtual host after a secret (token) update: ~ts",
2811-
[Explanation]),
2810+
?LOG_WARNING("Stream connection no longer has the permissions to access its target virtual host ('~ts') after a secret (token) update: ~ts",
2811+
[VH, Explanation]),
28122812
silent_close_delay(),
28132813
{C1#stream_connection{connection_step = failure},
28142814
{sasl_authenticate, ?RESPONSE_VHOST_ACCESS_FAILURE, <<>>}}

0 commit comments

Comments
 (0)