summaryrefslogtreecommitdiff
path: root/src/mongo/db/audit.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2013-07-17 18:06:14 -0400
committerAndy Schwerin <schwerin@10gen.com>2013-07-22 14:23:01 -0400
commitaa44eb2ce901ab2d82e8faa0799550ca15ccaf7e (patch)
treee12ae3ab43869b05e8d312fe2f70c26f7e2d645e /src/mongo/db/audit.cpp
parent819bc8fc804a9be8f36dc53d2f0008072adb137c (diff)
downloadmongo-aa44eb2ce901ab2d82e8faa0799550ca15ccaf7e.tar.gz
SERVER-1891 Add redactForLogging() to Command.
Command::redactForLogging(mutablebson::Document* cmdObj) transforms "cmdObj" into a form suitable for writing to logs. This patch provides a sample implementation for the user management commands that censors password fields, and updates the audit hook for commands, appropriately.
Diffstat (limited to 'src/mongo/db/audit.cpp')
-rw-r--r--src/mongo/db/audit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/audit.cpp b/src/mongo/db/audit.cpp
index 6c78ded58c6..86eb3577339 100644
--- a/src/mongo/db/audit.cpp
+++ b/src/mongo/db/audit.cpp
@@ -27,7 +27,7 @@ namespace audit {
void logCommandAuthzCheck(ClientBasic* client,
const NamespaceString& ns,
- const BSONObj& cmdObj,
+ const mutablebson::Document& cmdObj,
ErrorCodes::Error result) MONGO_AUDIT_STUB
void logDeleteAuthzCheck(