summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/commands/write_commands/batch_executor.cpp2
-rw-r--r--src/mongo/db/query/find.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/commands/write_commands/batch_executor.cpp b/src/mongo/db/commands/write_commands/batch_executor.cpp
index 53d6fa06500..74717698950 100644
--- a/src/mongo/db/commands/write_commands/batch_executor.cpp
+++ b/src/mongo/db/commands/write_commands/batch_executor.cpp
@@ -560,7 +560,7 @@ static void finishCurrentOp(OperationContext* txn, WriteErrorDetail* opError) {
if (opError)
logCurOpError(currentOp, opError);
- bool logAll = logger::globalLogDomain()->shouldLog(logger::LogComponent::kWrite,
+ bool logAll = logger::globalLogDomain()->shouldLog(logger::LogComponent::kCommand,
logger::LogSeverity::Debug(1));
bool logSlow = executionTime > (serverGlobalParams.slowMS + currentOp->getExpectedLatencyMs());
diff --git a/src/mongo/db/query/find.cpp b/src/mongo/db/query/find.cpp
index 5fa977392fe..89c356a3fe8 100644
--- a/src/mongo/db/query/find.cpp
+++ b/src/mongo/db/query/find.cpp
@@ -162,12 +162,12 @@ void endQueryOp(OperationContext* txn,
collection->infoCache()->notifyOfQuery(txn, summaryStats.indexesUsed);
}
- const logger::LogComponent queryLogComponent = logger::LogComponent::kQuery;
+ const logger::LogComponent commandLogComponent = logger::LogComponent::kCommand;
const logger::LogSeverity logLevelOne = logger::LogSeverity::Debug(1);
// Set debug information for consumption by the profiler and slow query log.
if (dbProfilingLevel > 0 || curop->elapsedMillis() > serverGlobalParams.slowMS ||
- logger::globalLogDomain()->shouldLog(queryLogComponent, logLevelOne)) {
+ logger::globalLogDomain()->shouldLog(commandLogComponent, logLevelOne)) {
// Generate plan summary string.
stdx::lock_guard<Client>(*txn->getClient());
curop->setPlanSummary_inlock(Explain::getPlanSummary(&exec));