@@ -562,8 +562,8 @@ protected void executeQuery(Query query, String collectionName, DocumentCallback
562
562
Document fieldsObject = query .getFieldsObject ();
563
563
564
564
if (LOGGER .isDebugEnabled ()) {
565
- LOGGER .debug (String .format ("Executing query: %s sort : %s fields : %s in collection: %s" ,
566
- serializeToJsonSafely (queryObject ), sortObject , fieldsObject , collectionName ));
565
+ LOGGER .debug (String .format ("Executing query: %s fields : %s sort : %s in collection: %s" ,
566
+ serializeToJsonSafely (queryObject ), fieldsObject , serializeToJsonSafely ( sortObject ) , collectionName ));
567
567
}
568
568
569
569
this .executeQueryInternal (new FindCallback (createDelegate (query ), queryObject , fieldsObject , null ),
@@ -2591,7 +2591,8 @@ protected <S, T> List<T> doFind(String collectionName,
2591
2591
2592
2592
if (LOGGER .isDebugEnabled ()) {
2593
2593
LOGGER .debug (String .format ("find using query: %s fields: %s sort: %s for class: %s in collection: %s" ,
2594
- serializeToJsonSafely (mappedQuery ), mappedSort , mappedFields , entityClass , collectionName ));
2594
+ serializeToJsonSafely (mappedQuery ), mappedFields , serializeToJsonSafely (mappedSort ), entityClass ,
2595
+ collectionName ));
2595
2596
}
2596
2597
2597
2598
return executeFindMultiInternal (new FindCallback (collectionPreparer , mappedQuery , mappedFields , null ),
@@ -2617,7 +2618,8 @@ <S, T> List<T> doFind(CollectionPreparer<MongoCollection<Document>> collectionPr
2617
2618
2618
2619
if (LOGGER .isDebugEnabled ()) {
2619
2620
LOGGER .debug (String .format ("find using query: %s fields: %s sort: %s for class: %s in collection: %s" ,
2620
- serializeToJsonSafely (mappedQuery ), mappedSort , mappedFields , sourceClass , collectionName ));
2621
+ serializeToJsonSafely (mappedQuery ), mappedFields , serializeToJsonSafely (mappedSort ), sourceClass ,
2622
+ collectionName ));
2621
2623
}
2622
2624
2623
2625
return executeFindMultiInternal (new FindCallback (collectionPreparer , mappedQuery , mappedFields , null ), preparer ,
@@ -2699,7 +2701,7 @@ protected <T> T doFindAndRemove(CollectionPreparer collectionPreparer, String co
2699
2701
2700
2702
if (LOGGER .isDebugEnabled ()) {
2701
2703
LOGGER .debug (String .format ("findAndRemove using query: %s fields: %s sort: %s for class: %s in collection: %s" ,
2702
- serializeToJsonSafely (query ), fields , sort , entityClass , collectionName ));
2704
+ serializeToJsonSafely (query ), fields , serializeToJsonSafely ( sort ) , entityClass , collectionName ));
2703
2705
}
2704
2706
2705
2707
MongoPersistentEntity <?> entity = mappingContext .getPersistentEntity (entityClass );
@@ -2730,7 +2732,8 @@ protected <T> T doFindAndModify(CollectionPreparer collectionPreparer, String co
2730
2732
if (LOGGER .isDebugEnabled ()) {
2731
2733
LOGGER .debug (String .format (
2732
2734
"findAndModify using query: %s fields: %s sort: %s for class: %s and update: %s in collection: %s" ,
2733
- serializeToJsonSafely (mappedQuery ), fields , sort , entityClass , serializeToJsonSafely (mappedUpdate ),
2735
+ serializeToJsonSafely (mappedQuery ), fields , serializeToJsonSafely (sort ), entityClass ,
2736
+ serializeToJsonSafely (mappedUpdate ),
2734
2737
collectionName ));
2735
2738
}
2736
2739
0 commit comments