diff options
author | Thomas Schubert <thomas.schubert@mongodb.com> | 2016-08-29 14:11:18 -0400 |
---|---|---|
committer | Thomas Schubert <thomas.schubert@mongodb.com> | 2016-09-02 13:24:58 -0400 |
commit | 710a443a980b88a36d8c4ef0ea3cc0d375681908 (patch) | |
tree | 74c82c605c9846cf14072162596d6d9c327328c5 /src/mongo/db/introspect.cpp | |
parent | 49b654c70e3df23d8fbba47d63a88a06c3d51f83 (diff) | |
download | mongo-710a443a980b88a36d8c4ef0ea3cc0d375681908.tar.gz |
SERVER-24991 log redaction for commands, concurrency, exec, index
Diffstat (limited to 'src/mongo/db/introspect.cpp')
-rw-r--r-- | src/mongo/db/introspect.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/introspect.cpp b/src/mongo/db/introspect.cpp index 3bc23d3fa93..cd802146305 100644 --- a/src/mongo/db/introspect.cpp +++ b/src/mongo/db/introspect.cpp @@ -161,8 +161,7 @@ void profile(OperationContext* txn, NetworkOp op) { } } catch (const AssertionException& assertionEx) { warning() << "Caught Assertion while trying to profile " << networkOpToString(op) - << " against " << CurOp::get(txn)->getNS() << ": " << assertionEx.toString() - << endl; + << " against " << CurOp::get(txn)->getNS() << ": " << redact(assertionEx); } } @@ -183,7 +182,7 @@ Status createProfileCollection(OperationContext* txn, Database* db) { } // system.profile namespace doesn't exist; create it - log() << "Creating profile collection: " << dbProfilingNS << endl; + log() << "Creating profile collection: " << dbProfilingNS; CollectionOptions collectionOptions; collectionOptions.capped = true; |