@@ -561,8 +561,8 @@ protected void executeQuery(Query query, String collectionName, DocumentCallback
561
561
Document fieldsObject = query .getFieldsObject ();
562
562
563
563
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 ));
566
566
}
567
567
568
568
this .executeQueryInternal (new FindCallback (createDelegate (query ), queryObject , fieldsObject , null ),
@@ -2555,7 +2555,8 @@ protected <S, T> List<T> doFind(String collectionName,
2555
2555
2556
2556
if (LOGGER .isDebugEnabled ()) {
2557
2557
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 ));
2559
2560
}
2560
2561
2561
2562
return executeFindMultiInternal (new FindCallback (collectionPreparer , mappedQuery , mappedFields , null ),
@@ -2581,7 +2582,8 @@ <S, T> List<T> doFind(CollectionPreparer<MongoCollection<Document>> collectionPr
2581
2582
2582
2583
if (LOGGER .isDebugEnabled ()) {
2583
2584
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 ));
2585
2587
}
2586
2588
2587
2589
return executeFindMultiInternal (new FindCallback (collectionPreparer , mappedQuery , mappedFields , null ), preparer ,
@@ -2665,7 +2667,7 @@ protected <T> T doFindAndRemove(CollectionPreparer collectionPreparer, String co
2665
2667
2666
2668
if (LOGGER .isDebugEnabled ()) {
2667
2669
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 ));
2669
2671
}
2670
2672
2671
2673
MongoPersistentEntity <?> entity = mappingContext .getPersistentEntity (entityClass );
@@ -2698,7 +2700,8 @@ protected <T> T doFindAndModify(CollectionPreparer collectionPreparer, String co
2698
2700
if (LOGGER .isDebugEnabled ()) {
2699
2701
LOGGER .debug (String .format (
2700
2702
"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 ),
2702
2705
collectionName ));
2703
2706
}
2704
2707
0 commit comments