summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2008-06-10 17:20:15 -0400
committerDwight <dmerriman@gmail.com>2008-06-10 17:20:15 -0400
commit4bda2a91c6241d9fe7891cb6f3c168373c08169d (patch)
tree787e58dc39634f05b5eaacb264c2e5f0299c6827
parentbb7e499d705f6f10dd0a727e0d81c59dcbc85aa5 (diff)
downloadmongo-4bda2a91c6241d9fe7891cb6f3c168373c08169d.tar.gz
logging
-rw-r--r--db/db.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/db/db.cpp b/db/db.cpp
index 0598bee4351..945dd9f0988 100644
--- a/db/db.cpp
+++ b/db/db.cpp
@@ -446,9 +446,6 @@ void connThread()
}
}
else if( m.data->operation == dbQuery ) {
-#if defined(_WIN32)
- log = true;
-#endif
receivedQuery(dbMsgPort, m, ss);
}
else if( m.data->operation == dbInsert ) {
@@ -508,6 +505,7 @@ void connThread()
int ms = t.millis();
log = log || ctr++ % 128 == 0;
+ DEV log = true;
if( log || ms > 100 ) {
ss << ' ' << t.millis() << "ms";
cout << ss.str().c_str() << endl;