summaryrefslogtreecommitdiff
path: root/db/namespace.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-01-20 14:30:59 -0500
committerEliot Horowitz <eliot@10gen.com>2009-01-20 14:30:59 -0500
commit3e7985c5d6f076df8b84e04a396b9dac836cf947 (patch)
tree31caf05b5e8bf15d0a9036c00bff5e1239492fdf /db/namespace.cpp
parent43b39dc755037a97582441efe3385fee52273925 (diff)
downloadmongo-3e7985c5d6f076df8b84e04a396b9dac836cf947.tar.gz
changed verbose to logLevel and added log(int)
Diffstat (limited to 'db/namespace.cpp')
-rw-r--r--db/namespace.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/db/namespace.cpp b/db/namespace.cpp
index 8c80337ce31..e76d2afc791 100644
--- a/db/namespace.cpp
+++ b/db/namespace.cpp
@@ -519,8 +519,7 @@ namespace mongo {
options: { capped : ..., size : ... }
*/
void addNewNamespaceToCatalog(const char *ns, BSONObj *options = 0) {
- if ( verbose )
- log() << "New namespace: " << ns << '\n';
+ log(1) << "New namespace: " << ns << '\n';
if ( strstr(ns, "system.namespaces") ) {
// system.namespaces holds all the others, so it is not explicitly listed in the catalog.
// TODO: fix above should not be strstr!