summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bsonobj.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/bsonobj.h')
-rw-r--r--src/mongo/bson/bsonobj.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/bson/bsonobj.h b/src/mongo/bson/bsonobj.h
index a0088c8b70d..83453bcc9e1 100644
--- a/src/mongo/bson/bsonobj.h
+++ b/src/mongo/bson/bsonobj.h
@@ -273,7 +273,9 @@ public:
/**
* @return a new full (and owned) redacted copy of the object.
*/
- BSONObj redact(bool onlyEncryptedFields = false) const;
+ BSONObj redact(
+ bool onlyEncryptedFields = false,
+ std::function<std::string(const BSONElement&)> fieldNameRedactor = nullptr) const;
/**
* Readable representation of a BSON object in an extended JSON-style notation.