summaryrefslogtreecommitdiff
path: root/src/mongo/transport/service_entry_point_impl.cpp
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@10gen.com>2021-03-19 17:43:30 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-19 18:13:11 +0000
commit4e410825f29880ff9502d41e3874b9ec8cef49cd (patch)
treedb99929e198cea36e3c167da546e38042874cbcb /src/mongo/transport/service_entry_point_impl.cpp
parente0c02385a21c388365b8908ebe33aaeeda3725e0 (diff)
downloadmongo-4e410825f29880ff9502d41e3874b9ec8cef49cd.tar.gz
SERVER-24912 Audit setting ClientMetadata as its own event
Diffstat (limited to 'src/mongo/transport/service_entry_point_impl.cpp')
-rw-r--r--src/mongo/transport/service_entry_point_impl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/transport/service_entry_point_impl.cpp b/src/mongo/transport/service_entry_point_impl.cpp
index 111dfd4bbd3..92d80da802e 100644
--- a/src/mongo/transport/service_entry_point_impl.cpp
+++ b/src/mongo/transport/service_entry_point_impl.cpp
@@ -163,6 +163,7 @@ void ServiceEntryPointImpl::startSession(transport::SessionHandle session) {
auto clientName = "conn{}"_format(session->id());
auto client = _svcCtx->makeClient(clientName, session);
+ auto uuid = client->getUUID();
const bool quiet = serverGlobalParams.quiet.load();
@@ -193,12 +194,13 @@ void ServiceEntryPointImpl::startSession(transport::SessionHandle session) {
LOGV2(22943,
"Connection accepted",
"remote"_attr = session->remote(),
+ "uuid"_attr = uuid.toString(),
"connectionId"_attr = session->id(),
"connectionCount"_attr = connectionCount);
}
auto ssmIt = *maybeSsmIt;
- ssmIt->setCleanupHook([this, ssmIt, quiet, session = std::move(session)] {
+ ssmIt->setCleanupHook([this, ssmIt, quiet, session = std::move(session), uuid] {
size_t connectionCount;
auto remote = session->remote();
{
@@ -212,6 +214,7 @@ void ServiceEntryPointImpl::startSession(transport::SessionHandle session) {
LOGV2(22944,
"Connection ended",
"remote"_attr = remote,
+ "uuid"_attr = uuid.toString(),
"connectionId"_attr = session->id(),
"connectionCount"_attr = connectionCount);
}