We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1841358 commit aff4e4fCopy full SHA for aff4e4f
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java
@@ -2892,13 +2892,6 @@ public Document doInCollection(MongoCollection<Document> collection) throws Mong
2892
FindIterable<Document> iterable = cursorPreparer.initiateFind(collection,
2893
col -> collectionPreparer.prepare(col).find(query, Document.class));
2894
2895
- if (LOGGER.isDebugEnabled()) {
2896
-
2897
- LOGGER.debug(String.format("findOne using query: %s fields: %s in db.collection: %s",
2898
- serializeToJsonSafely(query), serializeToJsonSafely(fields.orElseGet(Document::new)),
2899
- collection.getNamespace() != null ? collection.getNamespace().getFullName() : "n/a"));
2900
- }
2901
2902
if (fields.isPresent()) {
2903
iterable = iterable.projection(fields.get());
2904
}
0 commit comments