Skip to content

Commit 42d8c8c

Browse files
justwrotescotthernandez
authored andcommitted
show more information about an update in the log
1 parent c2abca5 commit 42d8c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/com/mongodb/DBApiLayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public WriteResult update( DBObject query , DBObject o , boolean upsert , boolea
318318
_checkObject(o, false, false);
319319
}
320320

321-
if ( willTrace() ) trace( "update: " + _fullNameSpace + " " + JSON.serialize( query ) );
321+
if ( willTrace() ) trace( "update: " + _fullNameSpace + " " + JSON.serialize( query ) + " " + JSON.serialize( o ) );
322322

323323
OutMessage om = new OutMessage( _mongo , 2001 );
324324
om.writeInt( 0 ); // reserved

0 commit comments

Comments
 (0)