summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_entry_point_common.cpp
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2020-02-27 22:54:30 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-28 04:14:38 +0000
commitae7506fb3ec763097208a1fec9228e09e430505a (patch)
treec273fbfd897a29763ddde8700ef7ff65996cad15 /src/mongo/db/service_entry_point_common.cpp
parent8dcbfee04b9a5ae83bf0b177a45d3f3e204a4ecb (diff)
downloadmongo-ae7506fb3ec763097208a1fec9228e09e430505a.tar.gz
SERVER-46404 Remove shouldLog from logger V1 API
Diffstat (limited to 'src/mongo/db/service_entry_point_common.cpp')
-rw-r--r--src/mongo/db/service_entry_point_common.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp
index 8878ff28f60..47587871f62 100644
--- a/src/mongo/db/service_entry_point_common.cpp
+++ b/src/mongo/db/service_entry_point_common.cpp
@@ -1101,7 +1101,7 @@ void execCommandDatabase(OperationContext* opCtx,
command->incrementCommandsExecuted();
- if (shouldLog(logger::LogComponent::kTracking, logger::LogSeverity::Debug(1)) &&
+ if (shouldLog(logv2::LogComponent::kTracking, logv2::LogSeverity::Debug(1)) &&
rpc::TrackingMetadata::get(opCtx).getParentOperId()) {
LOGV2_DEBUG_OPTIONS(4615605,
1,
@@ -1394,7 +1394,7 @@ void receivedKillCursors(OperationContext* opCtx, const Message& m) {
const char* cursorArray = dbmessage.getArray(n);
int found = runOpKillCursors(opCtx, static_cast<size_t>(n), cursorArray);
- if (shouldLog(logger::LogSeverity::Debug(1)) || found != n) {
+ if (shouldLog(logv2::LogSeverity::Debug(1)) || found != n) {
LOGV2_DEBUG(21967,
logSeverityV1toV2(found == n ? 1 : 0).toInt(),
"killcursors: found {found} of {n}",