summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/find.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/find.cpp')
-rw-r--r--src/mongo/db/query/find.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/find.cpp b/src/mongo/db/query/find.cpp
index a35f69bf1f7..08cecc32813 100644
--- a/src/mongo/db/query/find.cpp
+++ b/src/mongo/db/query/find.cpp
@@ -801,7 +801,7 @@ std::string runQuery(OperationContext* txn,
shardingState.getVersion(nss.ns()));
}
- const logger::LogComponent queryLogComponent = logger::LogComponent::kQuery;
+ const logger::LogComponent commandLogComponent = logger::LogComponent::kCommand;
const logger::LogSeverity logLevelOne = logger::LogSeverity::Debug(1);
PlanSummaryStats summaryStats;
@@ -816,7 +816,7 @@ std::string runQuery(OperationContext* txn,
// Set debug information for consumption by the profiler.
if (dbProfilingLevel > 0 || curop.elapsedMillis() > serverGlobalParams.slowMS ||
- logger::globalLogDomain()->shouldLog(queryLogComponent, logLevelOne)) {
+ logger::globalLogDomain()->shouldLog(commandLogComponent, logLevelOne)) {
// Get BSON stats.
scoped_ptr<PlanStageStats> execStats(exec->getStats());
BSONObjBuilder statsBob;