Skip to content

Commit a9f7bf1

Browse files
Log virtual host name if updated token lacks the permissions for it #14403
1 parent e763467 commit a9f7bf1

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
@@ -2788,8 +2788,8 @@ complete_secret_update(NewUser = #user{username = Username},
27882788
{sasl_authenticate, ?RESPONSE_CODE_OK,
27892789
<<>>}}
27902790
catch exit:#amqp_error{explanation = Explanation} ->
2791-
?LOG_WARNING("Stream connection no longer has the permissions to access its target virtual host after a secret (token) update: ~ts",
2792-
[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)