summaryrefslogtreecommitdiff
path: root/src/mongo/s/client/sharding_connection_hook.cpp
diff options
context:
space:
mode:
authorCheahuychou Mao <cheahuychou.mao@mongodb.com>2020-03-19 20:50:53 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-25 15:27:51 +0000
commit0c09d563ca9669f0a51f403282274f1a0c4c33cd (patch)
tree0652383ea7595c0fd216cbd40ecb11d71acca068 /src/mongo/s/client/sharding_connection_hook.cpp
parentc0c26887102d86cc887cbac642b441af896ba3cb (diff)
downloadmongo-0c09d563ca9669f0a51f403282274f1a0c4c33cd.tar.gz
SERVER-46799 Update sharding log lines to adhere to LOGV2 style guide
Diffstat (limited to 'src/mongo/s/client/sharding_connection_hook.cpp')
-rw-r--r--src/mongo/s/client/sharding_connection_hook.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/s/client/sharding_connection_hook.cpp b/src/mongo/s/client/sharding_connection_hook.cpp
index 93f3b6831eb..a135d311bf7 100644
--- a/src/mongo/s/client/sharding_connection_hook.cpp
+++ b/src/mongo/s/client/sharding_connection_hook.cpp
@@ -58,7 +58,11 @@ void ShardingConnectionHook::onCreate(DBClientBase* conn) {
// Authenticate as the first thing we do
// NOTE: Replica set authentication allows authentication against *any* online host
if (auth::isInternalAuthSet()) {
- LOGV2_DEBUG(22722, 2, "calling onCreate auth for {conn}", "conn"_attr = conn->toString());
+ LOGV2_DEBUG(22722,
+ 2,
+ "Calling onCreate auth for {connectionString}",
+ "Calling onCreate auth",
+ "connectionString"_attr = conn->toString());
uassertStatusOKWithContext(conn->authenticateInternalUser(),
str::stream() << "can't authenticate to server "