summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2013-02-26 12:31:10 -0500
committerSpencer T Brody <spencer@10gen.com>2013-02-27 13:59:55 -0500
commit46f3b3f0342f59406f69b2ed540ca6e4d6500854 (patch)
tree69695194d1f68da10c0a5c958076f26840744073
parent85f084463750f3cddb0792f45b3af2b19d4749b6 (diff)
downloadmongo-46f3b3f0342f59406f69b2ed540ca6e4d6500854.tar.gz
SERVER-8530 Prevent redundant logging of errors during queries
-rw-r--r--src/mongo/db/instance.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/mongo/db/instance.cpp b/src/mongo/db/instance.cpp
index 86ba6ead40c..2daee09b14d 100644
--- a/src/mongo/db/instance.cpp
+++ b/src/mongo/db/instance.cpp
@@ -274,12 +274,10 @@ namespace mongo {
if( ex ){
op.debug().exceptionInfo = ex->getInfo();
- LOGWITHRATELIMIT {
- log() << "assertion " << ex->toString() << " ns:" << q.ns << " query:" <<
+ log() << "assertion " << ex->toString() << " ns:" << q.ns << " query:" <<
(q.query.valid() ? q.query.toString() : "query object is corrupt") << endl;
- if( q.ntoskip || q.ntoreturn )
- log() << " ntoskip:" << q.ntoskip << " ntoreturn:" << q.ntoreturn << endl;
- }
+ if( q.ntoskip || q.ntoreturn )
+ log() << " ntoskip:" << q.ntoskip << " ntoreturn:" << q.ntoreturn << endl;
SendStaleConfigException* scex = NULL;
if ( ex->getCode() == SendStaleConfigCode ) scex = static_cast<SendStaleConfigException*>( ex.get() );
@@ -297,10 +295,6 @@ namespace mongo {
log() << "stale version detected during query over "
<< q.ns << " : " << errObj << endl;
}
- else{
- log() << "problem detected during query over "
- << q.ns << " : " << errObj << endl;
- }
BufBuilder b;
b.skip(sizeof(QueryResult));