diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2018-08-22 15:25:52 -0400 |
---|---|---|
committer | Spencer Jackson <spencer.jackson@mongodb.com> | 2018-09-17 17:21:40 -0400 |
commit | e78dc4e8cf32da88062090410ab8617f604633c9 (patch) | |
tree | df238a81200a01b354ebad2ad9ecd2dc7c9bedb3 /src/mongo/db/curop.cpp | |
parent | f99914d14b76718f1fef879cfaabe23c0c8f0857 (diff) | |
download | mongo-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.cpp | 2 |
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 { |