Skip to content

Commit 1841358

Browse files
devraghvmp911de
authored andcommitted
Remove duplicate log in reactive findOne operation.
Closes #4253 Original pull request: #4259
1 parent aeea743 commit 1841358

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2690,13 +2690,6 @@ private static class FindOneCallback implements ReactiveCollectionCallback<Docum
26902690
public Publisher<Document> doInCollection(MongoCollection<Document> collection)
26912691
throws MongoException, DataAccessException {
26922692

2693-
if (LOGGER.isDebugEnabled()) {
2694-
2695-
LOGGER.debug(
2696-
String.format("findOne using query: %s fields: %s in db.collection: %s", serializeToJsonSafely(query),
2697-
serializeToJsonSafely(fields.orElseGet(Document::new)), collection.getNamespace().getFullName()));
2698-
}
2699-
27002693
FindPublisher<Document> publisher = preparer.initiateFind(collectionPreparer.prepare(collection),
27012694
col -> col.find(query, Document.class));
27022695

0 commit comments

Comments
 (0)