@@ -561,8 +561,8 @@ protected void executeQuery(Query query, String collectionName, DocumentCallback
561561 Document fieldsObject = query .getFieldsObject ();
562562
563563 if (LOGGER .isDebugEnabled ()) {
564- LOGGER .debug (String .format ("Executing query: %s sort : %s fields : %s in collection: %s" ,
565- serializeToJsonSafely (queryObject ), sortObject , fieldsObject , collectionName ));
564+ LOGGER .debug (String .format ("Executing query: %s fields : %s sort : %s in collection: %s" ,
565+ serializeToJsonSafely (queryObject ), fieldsObject , serializeToJsonSafely ( sortObject ) , collectionName ));
566566 }
567567
568568 this .executeQueryInternal (new FindCallback (createDelegate (query ), queryObject , fieldsObject , null ),
@@ -2555,7 +2555,8 @@ protected <S, T> List<T> doFind(String collectionName,
25552555
25562556 if (LOGGER .isDebugEnabled ()) {
25572557 LOGGER .debug (String .format ("find using query: %s fields: %s sort: %s for class: %s in collection: %s" ,
2558- serializeToJsonSafely (mappedQuery ), mappedSort , mappedFields , entityClass , collectionName ));
2558+ serializeToJsonSafely (mappedQuery ), mappedFields , serializeToJsonSafely (mappedSort ), entityClass ,
2559+ collectionName ));
25592560 }
25602561
25612562 return executeFindMultiInternal (new FindCallback (collectionPreparer , mappedQuery , mappedFields , null ),
@@ -2581,7 +2582,8 @@ <S, T> List<T> doFind(CollectionPreparer<MongoCollection<Document>> collectionPr
25812582
25822583 if (LOGGER .isDebugEnabled ()) {
25832584 LOGGER .debug (String .format ("find using query: %s fields: %s sort: %s for class: %s in collection: %s" ,
2584- serializeToJsonSafely (mappedQuery ), mappedSort , mappedFields , sourceClass , collectionName ));
2585+ serializeToJsonSafely (mappedQuery ), mappedFields , serializeToJsonSafely (mappedSort ), sourceClass ,
2586+ collectionName ));
25852587 }
25862588
25872589 return executeFindMultiInternal (new FindCallback (collectionPreparer , mappedQuery , mappedFields , null ), preparer ,
@@ -2665,7 +2667,7 @@ protected <T> T doFindAndRemove(CollectionPreparer collectionPreparer, String co
26652667
26662668 if (LOGGER .isDebugEnabled ()) {
26672669 LOGGER .debug (String .format ("findAndRemove using query: %s fields: %s sort: %s for class: %s in collection: %s" ,
2668- serializeToJsonSafely (query ), fields , sort , entityClass , collectionName ));
2670+ serializeToJsonSafely (query ), fields , serializeToJsonSafely ( sort ) , entityClass , collectionName ));
26692671 }
26702672
26712673 MongoPersistentEntity <?> entity = mappingContext .getPersistentEntity (entityClass );
@@ -2698,7 +2700,8 @@ protected <T> T doFindAndModify(CollectionPreparer collectionPreparer, String co
26982700 if (LOGGER .isDebugEnabled ()) {
26992701 LOGGER .debug (String .format (
27002702 "findAndModify using query: %s fields: %s sort: %s for class: %s and update: %s in collection: %s" ,
2701- serializeToJsonSafely (mappedQuery ), fields , sort , entityClass , serializeToJsonSafely (mappedUpdate ),
2703+ serializeToJsonSafely (mappedQuery ), fields , serializeToJsonSafely (sort ), entityClass ,
2704+ serializeToJsonSafely (mappedUpdate ),
27022705 collectionName ));
27032706 }
27042707
0 commit comments