From 89a58c46ad0ea49449e6b6bbe3fb2428509a56ca Mon Sep 17 00:00:00 2001 From: Aaron Date: Thu, 19 Feb 2009 15:16:36 -0500 Subject: Clean up logging --- db/dbcommands.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'db') diff --git a/db/dbcommands.cpp b/db/dbcommands.cpp index 746d5df31f5..44718cf858b 100644 --- a/db/dbcommands.cpp +++ b/db/dbcommands.cpp @@ -843,8 +843,8 @@ namespace mongo { c->help( help ); anObjBuilder.append( "help" , help.str() ); } else { - if( admin || logLevel >= 2 ) - log() << "command: " << jsobj.toString() << endl; + if( admin ) + log( 2 ) << "command: " << jsobj << endl; ok = c->run(ns, jsobj, errmsg, anObjBuilder, fromRepl); if ( ok && c->logTheOp() && !fromRepl ) logOp("c", ns, jsobj); -- cgit v1.2.1