diff options
author | Dwight <dmerriman@gmail.com> | 2009-09-21 16:31:00 -0400 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2009-09-21 16:31:00 -0400 |
commit | 6bbaf0fdc3a1cba0be4862b2169535f8b2f113a9 (patch) | |
tree | 3c71a7e9d887066b5a42ed082868290634a82363 /util | |
parent | d30ce5418dc205e427fd209b1d285b0e4808de2a (diff) | |
download | mongo-6bbaf0fdc3a1cba0be4862b2169535f8b2f113a9.tar.gz |
better unit tests for unique indexes and dropDup : true on indexing
Diffstat (limited to 'util')
-rw-r--r-- | util/log.h | 9 |
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(); |