From cc3887c8647f963d66f1fbcf7ba4b67acb43b03b Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 27 Apr 2009 19:12:32 -0400 Subject: use static variables for OCCASIONALLY/RARELY/ONCE to get per function uniqueness --- db/dbeval.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'db/dbeval.cpp') diff --git a/db/dbeval.cpp b/db/dbeval.cpp index a3a235ee082..2932c01dfb9 100644 --- a/db/dbeval.cpp +++ b/db/dbeval.cpp @@ -90,8 +90,8 @@ namespace mongo { int m = t.millis(); if ( m > 100 ) { out() << "dbeval slow, time: " << dec << m << "ms " << ns << endl; - OCCASIONALLY log() << code << endl; - else if ( m >= 1000 ) log() << code << endl; + if ( m >= 1000 ) log() << code << endl; + else OCCASIONALLY log() << code << endl; } } if ( res ) { -- cgit v1.2.1