@@ -1012,7 +1012,7 @@ public WriteResult doInCollection(DBCollection collection) throws MongoException
10121012
10131013 if (LOGGER .isDebugEnabled ()) {
10141014 LOGGER .debug (String .format ("Calling update using query: %s and update: %s in collection: %s" ,
1015- serializeToJsonSafely (queryObj ), serializeToJsonSafely (updateObj ), collectionName ));
1015+ serializeToJsonSafely (queryObj ), serializeToJsonSafely (updateObj ), collectionName ));
10161016 }
10171017
10181018 MongoAction mongoAction = new MongoAction (writeConcern , MongoActionOperation .UPDATE , collectionName ,
@@ -1189,8 +1189,8 @@ public WriteResult doInCollection(DBCollection collection) throws MongoException
11891189 WriteConcern writeConcernToUse = prepareWriteConcern (mongoAction );
11901190
11911191 if (LOGGER .isDebugEnabled ()) {
1192- LOGGER .debug ("Remove using query: {} in collection: {}." ,
1193- new Object [] { serializeToJsonSafely ( dboq ), collection .getName () });
1192+ LOGGER .debug ("Remove using query: {} in collection: {}." , new Object [] { serializeToJsonSafely ( dboq ),
1193+ collection .getName () });
11941194 }
11951195
11961196 WriteResult wr = writeConcernToUse == null ? collection .remove (dboq ) : collection .remove (dboq ,
@@ -1664,7 +1664,7 @@ protected <T> T doFindAndRemove(String collectionName, DBObject query, DBObject
16641664 EntityReader <? super T , DBObject > readerToUse = this .mongoConverter ;
16651665 if (LOGGER .isDebugEnabled ()) {
16661666 LOGGER .debug (String .format ("findAndRemove using query: %s fields: %s sort: %s for class: %s in collection: %s" ,
1667- serializeToJsonSafely (query ), fields , sort , entityClass , collectionName ));
1667+ serializeToJsonSafely (query ), fields , sort , entityClass , collectionName ));
16681668 }
16691669 MongoPersistentEntity <?> entity = mappingContext .getPersistentEntity (entityClass );
16701670 return executeFindOneInternal (new FindAndRemoveCallback (queryMapper .getMappedObject (query , entity ), fields , sort ),
@@ -1688,9 +1688,9 @@ protected <T> T doFindAndModify(String collectionName, DBObject query, DBObject
16881688 DBObject mappedUpdate = updateMapper .getMappedObject (update .getUpdateObject (), entity );
16891689
16901690 if (LOGGER .isDebugEnabled ()) {
1691- LOGGER .debug (String .format ("findAndModify using query: %s fields: %s sort: %s for class: %s and update: %s " +
1692- "in collection: %s" , serializeToJsonSafely (mappedQuery ), fields , sort , entityClass ,
1693- serializeToJsonSafely (mappedUpdate ), collectionName ));
1691+ LOGGER .debug (String .format ("findAndModify using query: %s fields: %s sort: %s for class: %s and update: %s "
1692+ + "in collection: %s" , serializeToJsonSafely (mappedQuery ), fields , sort , entityClass ,
1693+ serializeToJsonSafely (mappedUpdate ), collectionName ));
16941694 }
16951695
16961696 return executeFindOneInternal (new FindAndModifyCallback (mappedQuery , fields , sort , mappedUpdate , options ),
@@ -1998,14 +1998,14 @@ public FindOneCallback(DBObject query, DBObject fields) {
19981998 public DBObject doInCollection (DBCollection collection ) throws MongoException , DataAccessException {
19991999 if (fields == null ) {
20002000 if (LOGGER .isDebugEnabled ()) {
2001- LOGGER .debug (String .format ("findOne using query: %s in db.collection: %s" ,
2002- serializeToJsonSafely ( query ), collection .getFullName ()));
2001+ LOGGER .debug (String .format ("findOne using query: %s in db.collection: %s" , serializeToJsonSafely ( query ),
2002+ collection .getFullName ()));
20032003 }
20042004 return collection .findOne (query );
20052005 } else {
20062006 if (LOGGER .isDebugEnabled ()) {
20072007 LOGGER .debug (String .format ("findOne using query: %s fields: %s in db.collection: %s" ,
2008- serializeToJsonSafely (query ), fields , collection .getFullName ()));
2008+ serializeToJsonSafely (query ), fields , collection .getFullName ()));
20092009 }
20102010 return collection .findOne (query , fields );
20112011 }
0 commit comments