diff options
author | Dwight <dmerriman@gmail.com> | 2008-06-10 17:20:15 -0400 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2008-06-10 17:20:15 -0400 |
commit | 4bda2a91c6241d9fe7891cb6f3c168373c08169d (patch) | |
tree | 787e58dc39634f05b5eaacb264c2e5f0299c6827 | |
parent | bb7e499d705f6f10dd0a727e0d81c59dcbc85aa5 (diff) | |
download | mongo-4bda2a91c6241d9fe7891cb6f3c168373c08169d.tar.gz |
logging
-rw-r--r-- | db/db.cpp | 4 |
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; |