summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2018-02-20 13:44:09 -0500
committerDavid Storch <david.storch@10gen.com>2018-02-20 15:01:47 -0500
commit6b08990f795c3521465ea096fd6e898b6fedd51b (patch)
tree76bce01a16f116f8ad8ae950776c90bfd9a34241 /src/mongo/db/commands.h
parent9e428f7bf5e6e6163f6bb9deafec15961995813c (diff)
downloadmongo-6b08990f795c3521465ea096fd6e898b6fedd51b.tar.gz
SERVER-33302 Add missing calls to redact() in error paths.
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r--src/mongo/db/commands.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h
index 9ed9e27ccca..805879b08d2 100644
--- a/src/mongo/db/commands.h
+++ b/src/mongo/db/commands.h
@@ -317,6 +317,10 @@ public:
* Redacts "cmdObj" in-place to a form suitable for writing to logs.
*
* The default implementation does nothing.
+ *
+ * This is NOT used to implement user-configurable redaction of PII. Instead, that is
+ * implemented via the set of redact() free functions, which are no-ops when log redaction is
+ * disabled. All PII must pass through one of the redact() overloads before being logged.
*/
virtual void redactForLogging(mutablebson::Document* cmdObj) const {}