From 6b08990f795c3521465ea096fd6e898b6fedd51b Mon Sep 17 00:00:00 2001 From: David Storch Date: Tue, 20 Feb 2018 13:44:09 -0500 Subject: SERVER-33302 Add missing calls to redact() in error paths. --- src/mongo/db/commands.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mongo/db/commands.h') 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 {} -- cgit v1.2.1