summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2009-09-21 16:31:00 -0400
committerDwight <dmerriman@gmail.com>2009-09-21 16:31:00 -0400
commit6bbaf0fdc3a1cba0be4862b2169535f8b2f113a9 (patch)
tree3c71a7e9d887066b5a42ed082868290634a82363 /util
parentd30ce5418dc205e427fd209b1d285b0e4808de2a (diff)
downloadmongo-6bbaf0fdc3a1cba0be4862b2169535f8b2f113a9.tar.gz
better unit tests for unique indexes and dropDup : true on indexing
Diffstat (limited to 'util')
-rw-r--r--util/log.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/util/log.h b/util/log.h
index 93c9b2d28aa..ffc2ff3ac88 100644
--- a/util/log.h
+++ b/util/log.h
@@ -207,7 +207,14 @@ namespace mongo {
Logstream::get().flush();
}
- inline Nullstream& log( int level = 0 ){
+ /* without prolog */
+ inline Nullstream& _log( int level = 0 ){
+ if ( level > logLevel )
+ return nullstream;
+ return Logstream::get();
+ }
+
+ inline Nullstream& log( int level = 0 ) {
if ( level > logLevel )
return nullstream;
return Logstream::get().prolog();