More log message edits #14403

This commit is contained in:
Michael Klishin 2025-08-19 13:58:47 -04:00
parent 55d6419bcd
commit e7634679d1
No known key found for this signature in database
GPG Key ID: 16AB14D00D613900
1 changed files with 3 additions and 3 deletions

View File

@ -2775,10 +2775,10 @@ complete_secret_update(NewUser = #user{username = Username},
virtual_host = VH} = C1, S1) ->
notify_auth_result(Username, user_authentication_success, [], C1, S1),
rabbit_core_metrics:auth_attempt_succeeded(Host, Username, stream),
?LOG_DEBUG("Stream connection has successfully checked updated secret for username '~ts'",
?LOG_DEBUG("Stream connection has successfully checked updated secret (token) for username '~ts'",
[Username]),
try
?LOG_DEBUG("Checking virtual host access after secret update"),
?LOG_DEBUG("Stream connection: will verify virtual host access after secret (token) update"),
rabbit_access_control:check_vhost_access(NewUser, VH, {socket, S}, #{}),
?LOG_DEBUG("Checked vhost access"),
@ -2788,7 +2788,7 @@ complete_secret_update(NewUser = #user{username = Username},
{sasl_authenticate, ?RESPONSE_CODE_OK,
<<>>}}
catch exit:#amqp_error{explanation = Explanation} ->
?LOG_WARNING("Stream client can no longer access virtual host after a secret update: ~ts",
?LOG_WARNING("Stream connection no longer has the permissions to access its target virtual host after a secret (token) update: ~ts",
[Explanation]),
silent_close_delay(),
{C1#stream_connection{connection_step = failure},