summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.cpp
diff options
context:
space:
mode:
authorSpencer Jackson <spencer.jackson@mongodb.com>2018-08-22 15:25:52 -0400
committerSpencer Jackson <spencer.jackson@mongodb.com>2018-09-17 17:21:40 -0400
commite78dc4e8cf32da88062090410ab8617f604633c9 (patch)
treedf238a81200a01b354ebad2ad9ecd2dc7c9bedb3 /src/mongo/db/curop.cpp
parentf99914d14b76718f1fef879cfaabe23c0c8f0857 (diff)
downloadmongo-e78dc4e8cf32da88062090410ab8617f604633c9.tar.gz
SERVER-36606: Allow commands to expose names of sensitive fields
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r--src/mongo/db/curop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp
index a8576d29120..7fbc23630b7 100644
--- a/src/mongo/db/curop.cpp
+++ b/src/mongo/db/curop.cpp
@@ -555,7 +555,7 @@ string OpDebug::report(Client* client,
const Command* curCommand = curop.getCommand();
if (curCommand) {
mutablebson::Document cmdToLog(query, mutablebson::Document::kInPlaceDisabled);
- curCommand->redactForLogging(&cmdToLog);
+ curCommand->snipForLogging(&cmdToLog);
s << curCommand->getName() << " ";
s << redact(cmdToLog.getObject());
} else {