summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/plan_cache_commands.cpp
diff options
context:
space:
mode:
authorThomas Schubert <thomas.schubert@mongodb.com>2016-08-29 14:11:18 -0400
committerThomas Schubert <thomas.schubert@mongodb.com>2016-09-02 13:24:58 -0400
commit710a443a980b88a36d8c4ef0ea3cc0d375681908 (patch)
tree74c82c605c9846cf14072162596d6d9c327328c5 /src/mongo/db/commands/plan_cache_commands.cpp
parent49b654c70e3df23d8fbba47d63a88a06c3d51f83 (diff)
downloadmongo-710a443a980b88a36d8c4ef0ea3cc0d375681908.tar.gz
SERVER-24991 log redaction for commands, concurrency, exec, index
Diffstat (limited to 'src/mongo/db/commands/plan_cache_commands.cpp')
-rw-r--r--src/mongo/db/commands/plan_cache_commands.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/plan_cache_commands.cpp b/src/mongo/db/commands/plan_cache_commands.cpp
index 0fb1a5b1d57..25b76b6fbe9 100644
--- a/src/mongo/db/commands/plan_cache_commands.cpp
+++ b/src/mongo/db/commands/plan_cache_commands.cpp
@@ -311,7 +311,7 @@ Status PlanCacheClear::clear(OperationContext* txn,
if (!planCache->contains(*cq)) {
// Log if asked to clear non-existent query shape.
LOG(1) << ns << ": query shape doesn't exist in PlanCache - "
- << cq->getQueryObj().toString() << "(sort: " << cq->getQueryRequest().getSort()
+ << redact(cq->getQueryObj()) << "(sort: " << cq->getQueryRequest().getSort()
<< "; projection: " << cq->getQueryRequest().getProj()
<< "; collation: " << cq->getQueryRequest().getCollation() << ")";
return Status::OK();
@@ -322,7 +322,7 @@ Status PlanCacheClear::clear(OperationContext* txn,
return result;
}
- LOG(1) << ns << ": removed plan cache entry - " << cq->getQueryObj().toString()
+ LOG(1) << ns << ": removed plan cache entry - " << redact(cq->getQueryObj())
<< "(sort: " << cq->getQueryRequest().getSort()
<< "; projection: " << cq->getQueryRequest().getProj()
<< "; collation: " << cq->getQueryRequest().getCollation() << ")";