summaryrefslogtreecommitdiff
path: root/src/mongo/db/introspect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/introspect.cpp')
-rw-r--r--src/mongo/db/introspect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/introspect.cpp b/src/mongo/db/introspect.cpp
index 18608a8dad0..cbbb710e6d7 100644
--- a/src/mongo/db/introspect.cpp
+++ b/src/mongo/db/introspect.cpp
@@ -88,7 +88,7 @@ void profile(OperationContext* opCtx, NetworkOp op) {
AuthorizationSession* authSession = AuthorizationSession::get(opCtx->getClient());
OpDebug::appendUserInfo(*CurOp::get(opCtx), b, authSession);
- const BSONObj p = b.done();
+ const BSONObj p = b.done().redact(BSONObj::RedactLevel::sensitiveOnly);
const string dbName(nsToDatabase(CurOp::get(opCtx)->getNS()));