summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclient_connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/dbclient_connection.cpp')
-rw-r--r--src/mongo/client/dbclient_connection.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/client/dbclient_connection.cpp b/src/mongo/client/dbclient_connection.cpp
index 6f0940faf49..0d5d10cf3f0 100644
--- a/src/mongo/client/dbclient_connection.cpp
+++ b/src/mongo/client/dbclient_connection.cpp
@@ -31,7 +31,7 @@
* Connect to a Mongo database as a database, from C++.
*/
-#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kNetwork
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kNetwork
#include "mongo/platform/basic.h"
@@ -559,7 +559,7 @@ void DBClientConnection::_checkConnection() {
sleepFor(_autoReconnectBackoff.nextSleep());
LOGV2_DEBUG(20120,
- logSeverityV1toV2(_logLevel).toInt(),
+ _logLevel.toInt(),
"Trying to reconnect to {connString}",
"Trying to reconnnect",
"connString"_attr = toString());
@@ -568,7 +568,7 @@ void DBClientConnection::_checkConnection() {
if (!connectStatus.isOK()) {
_markFailed(kSetFlag);
LOGV2_DEBUG(20121,
- logSeverityV1toV2(_logLevel).toInt(),
+ _logLevel.toInt(),
"Reconnect attempt to {connString} failed: {reason}",
"Reconnect attempt failed",
"connString"_attr = toString(),
@@ -581,7 +581,7 @@ void DBClientConnection::_checkConnection() {
}
LOGV2_DEBUG(20122,
- logSeverityV1toV2(_logLevel).toInt(),
+ _logLevel.toInt(),
"Reconnected to {connString}",
"Reconnected",
"connString"_attr = toString());
@@ -593,7 +593,7 @@ void DBClientConnection::_checkConnection() {
DBClientConnection::_auth(kv.second);
} catch (ExceptionFor<ErrorCodes::AuthenticationFailed>& ex) {
LOGV2_DEBUG(20123,
- logSeverityV1toV2(_logLevel).toInt(),
+ _logLevel.toInt(),
"Reconnect: auth failed for on {db} using {user}: {reason}",
"Reconnect: auth failed",
"db"_attr = kv.second[auth::getSaslCommandUserDBFieldName()],