summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-02-19 15:16:36 -0500
committerAaron <aaron@10gen.com>2009-02-19 15:16:36 -0500
commit89a58c46ad0ea49449e6b6bbe3fb2428509a56ca (patch)
tree72b4399213284f3d1c58eca11cf66fc54e16182c /db
parent0d08c1ea2e20b08d992dcbfba1c064a25c5fbd2c (diff)
downloadmongo-89a58c46ad0ea49449e6b6bbe3fb2428509a56ca.tar.gz
Clean up logging
Diffstat (limited to 'db')
-rw-r--r--db/dbcommands.cpp4
1 files changed, 2 insertions, 2 deletions
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);