diff options
author | Aaron <aaron@10gen.com> | 2009-02-19 15:16:36 -0500 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-02-19 15:16:36 -0500 |
commit | 89a58c46ad0ea49449e6b6bbe3fb2428509a56ca (patch) | |
tree | 72b4399213284f3d1c58eca11cf66fc54e16182c /db | |
parent | 0d08c1ea2e20b08d992dcbfba1c064a25c5fbd2c (diff) | |
download | mongo-89a58c46ad0ea49449e6b6bbe3fb2428509a56ca.tar.gz |
Clean up logging
Diffstat (limited to 'db')
-rw-r--r-- | db/dbcommands.cpp | 4 |
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); |