diff options
author | Adam Midvidy <amidvidy@gmail.com> | 2015-06-18 14:47:25 -0400 |
---|---|---|
committer | Adam Midvidy <amidvidy@gmail.com> | 2015-06-18 15:16:19 -0400 |
commit | a0070b263ba180343a4dc1475c78c571178665c7 (patch) | |
tree | 2e1c175cbd6c1cdaf7c3ed981c0dcdaa7a161dd8 /src | |
parent | c317c2b9416ffeb9a79ac8bec1eb79ae10448a4a (diff) | |
download | mongo-a0070b263ba180343a4dc1475c78c571178665c7.tar.gz |
SERVER-19034 log command errors at log level 1
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/commands.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mongo/db/commands.cpp b/src/mongo/db/commands.cpp index 4989adf6472..3fe012598ca 100644 --- a/src/mongo/db/commands.cpp +++ b/src/mongo/db/commands.cpp @@ -450,15 +450,15 @@ namespace { const rpc::RequestInterface& request, Command* command) { - log() << "assertion while executing command '" - << request.getCommandName() << "' " - << "on database '" - << request.getDatabase() << "' " - << "with arguments '" - << command->getRedactedCopyForLogging(request.getCommandArgs()) << "' " - << "and metadata '" - << request.getMetadata() << "': " - << exception.toString(); + LOG(1) << "assertion while executing command '" + << request.getCommandName() << "' " + << "on database '" + << request.getDatabase() << "' " + << "with arguments '" + << command->getRedactedCopyForLogging(request.getCommandArgs()) << "' " + << "and metadata '" + << request.getMetadata() << "': " + << exception.toString(); _generateErrorResponse(txn, replyBuilder, exception); } @@ -468,11 +468,11 @@ namespace { const DBException& exception, const rpc::RequestInterface& request) { - log() << "assertion while executing command '" - << request.getCommandName() << "' " - << "on database '" - << request.getDatabase() << "': " - << exception.toString(); + LOG(1) << "assertion while executing command '" + << request.getCommandName() << "' " + << "on database '" + << request.getDatabase() << "': " + << exception.toString(); _generateErrorResponse(txn, replyBuilder, exception); } @@ -480,7 +480,7 @@ namespace { void Command::generateErrorResponse(OperationContext* txn, rpc::ReplyBuilderInterface* replyBuilder, const DBException& exception) { - log() << "assertion while executing command: " << exception.toString(); + LOG(1) << "assertion while executing command: " << exception.toString(); _generateErrorResponse(txn, replyBuilder, exception); } |