Skip to content

Commit

Permalink
Add client-provided connection name to logging
Browse files Browse the repository at this point in the history
Fixes #11958

* Start by adding `ConnectionName` to the "authenticated and granted access" message for AMQP 1.0
  • Loading branch information
lukebakken committed Aug 8, 2024
1 parent 28bd6d4 commit 6ec6fa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deps/rabbit/src/rabbit_amqp_reader.erl
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ handle_connection_frame(
rabbit_core_metrics:auth_attempt_succeeded(<<>>, Username, amqp10),
notify_auth(user_authentication_success, Username, State0),
rabbit_log_connection:info(
"AMQP 1.0 connection: user '~ts' authenticated and granted access to vhost '~ts'",
[Username, Vhost]),
"AMQP 1.0 connection '~ts': user '~ts' authenticated and granted access to vhost '~ts'",
[ConnectionName, Username, Vhost]),

OutgoingMaxFrameSize = case ClientMaxFrame of
undefined ->
Expand Down

0 comments on commit 6ec6fa4

Please sign in to comment.