summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-02-13 16:17:52 -0500
committerEliot Horowitz <eliot@10gen.com>2009-02-13 16:17:52 -0500
commit3422d92adffca7b526882c1931370d648fde4315 (patch)
tree77083e2ec857353dcfbde839979dddbf97bad591 /client
parent41a0f8c4cf4ad11909d835586a40f65a0c1876a5 (diff)
downloadmongo-3422d92adffca7b526882c1931370d648fde4315.tar.gz
fixed logging
Diffstat (limited to 'client')
-rw-r--r--client/model.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/client/model.cpp b/client/model.cpp
index a9aee1028c8..2e13c4db927 100644
--- a/client/model.cpp
+++ b/client/model.cpp
@@ -50,15 +50,20 @@ namespace mongo {
conn->insert( getNS() , o );
_id = o["_id"];
- log(4) << "inserted new model" << endl;
+ log(4) << "inserted new model " << getNS() << " " << o << endl;
}
else {
b.append( _id );
BSONObjBuilder id;
id.append( _id );
- conn->update( getNS() , id.obj() , b.obj() );
- log(4) << "updated old model" << endl;
+ BSONObj q = id.obj();
+ BSONObj o = b.obj();
+
+ log(4) << "updated old model" << getNS() << " " << q << " " << o << endl;
+
+ conn->update( getNS() , q , o );
+
}
conn.done();