@@ -564,8 +564,8 @@ protected void executeQuery(Query query, String collectionName, DocumentCallback
564
564
Document fieldsObject = query .getFieldsObject ();
565
565
566
566
if (LOGGER .isDebugEnabled ()) {
567
- LOGGER .debug (String .format ("Executing query: %s sort : %s fields : %s in collection: %s" ,
568
- serializeToJsonSafely (queryObject ), sortObject , fieldsObject , collectionName ));
567
+ LOGGER .debug (String .format ("Executing query: %s fields : %s sort : %s in collection: %s" ,
568
+ serializeToJsonSafely (queryObject ), fieldsObject , serializeToJsonSafely ( sortObject ) , collectionName ));
569
569
}
570
570
571
571
this .executeQueryInternal (new FindCallback (createDelegate (query ), queryObject , fieldsObject , null ),
@@ -2599,7 +2599,8 @@ protected <S, T> List<T> doFind(String collectionName,
2599
2599
2600
2600
if (LOGGER .isDebugEnabled ()) {
2601
2601
LOGGER .debug (String .format ("find using query: %s fields: %s sort: %s for class: %s in collection: %s" ,
2602
- serializeToJsonSafely (mappedQuery ), mappedSort , mappedFields , entityClass , collectionName ));
2602
+ serializeToJsonSafely (mappedQuery ), mappedFields , serializeToJsonSafely (mappedSort ), entityClass ,
2603
+ collectionName ));
2603
2604
}
2604
2605
2605
2606
return executeFindMultiInternal (new FindCallback (collectionPreparer , mappedQuery , mappedFields , null ),
@@ -2625,7 +2626,8 @@ <S, T> List<T> doFind(CollectionPreparer<MongoCollection<Document>> collectionPr
2625
2626
2626
2627
if (LOGGER .isDebugEnabled ()) {
2627
2628
LOGGER .debug (String .format ("find using query: %s fields: %s sort: %s for class: %s in collection: %s" ,
2628
- serializeToJsonSafely (mappedQuery ), mappedSort , mappedFields , sourceClass , collectionName ));
2629
+ serializeToJsonSafely (mappedQuery ), mappedFields , serializeToJsonSafely (mappedSort ), sourceClass ,
2630
+ collectionName ));
2629
2631
}
2630
2632
2631
2633
return executeFindMultiInternal (new FindCallback (collectionPreparer , mappedQuery , mappedFields , null ), preparer ,
@@ -2706,7 +2708,7 @@ protected <T> T doFindAndRemove(CollectionPreparer collectionPreparer, String co
2706
2708
2707
2709
if (LOGGER .isDebugEnabled ()) {
2708
2710
LOGGER .debug (String .format ("findAndRemove using query: %s fields: %s sort: %s for class: %s in collection: %s" ,
2709
- serializeToJsonSafely (query ), fields , sort , entityClass , collectionName ));
2711
+ serializeToJsonSafely (query ), fields , serializeToJsonSafely ( sort ) , entityClass , collectionName ));
2710
2712
}
2711
2713
2712
2714
MongoPersistentEntity <?> entity = mappingContext .getPersistentEntity (entityClass );
@@ -2737,7 +2739,8 @@ protected <T> T doFindAndModify(CollectionPreparer collectionPreparer, String co
2737
2739
if (LOGGER .isDebugEnabled ()) {
2738
2740
LOGGER .debug (String .format (
2739
2741
"findAndModify using query: %s fields: %s sort: %s for class: %s and update: %s in collection: %s" ,
2740
- serializeToJsonSafely (mappedQuery ), fields , sort , entityClass , serializeToJsonSafely (mappedUpdate ),
2742
+ serializeToJsonSafely (mappedQuery ), fields , serializeToJsonSafely (sort ), entityClass ,
2743
+ serializeToJsonSafely (mappedUpdate ),
2741
2744
collectionName ));
2742
2745
}
2743
2746
0 commit comments