spring-data-mongodb
spring-data-mongodb copied to clipboard
GH-4873: Use JsonWriterSettings(SHELL) for MongoTemplate logging
This PR addresses #4873 by using JsonWriterSettings with JsonMode.SHELL in SerializationUtils so that ObjectId values in MongoTemplate/ReactiveMongoTemplate DEBUG logs are rendered as ObjectId("…") instead of {"$oid":"…"}.