diff options
author | Andy Schwerin <schwerin@10gen.com> | 2013-07-17 18:06:14 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2013-07-22 14:23:01 -0400 |
commit | aa44eb2ce901ab2d82e8faa0799550ca15ccaf7e (patch) | |
tree | e12ae3ab43869b05e8d312fe2f70c26f7e2d645e /src/mongo/db/audit.cpp | |
parent | 819bc8fc804a9be8f36dc53d2f0008072adb137c (diff) | |
download | mongo-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.cpp | 2 |
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( |