Skip to content

Commit fc377cf

Browse files
LinkedListmp911de
authored andcommitted
DATAMONGO-1205 - Log only CyclicPropertyReferenceException message.
We log CyclicPropertyReferenceException with its message only and removed the stack trace from the log. The stacktrace points to a verifier location and is not particularly useful in finding the offending code. This change creates consistency over how CyclicPropertyReferenceException is logged. Original pull request: spring-projects#397.
1 parent d594afb commit fc377cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public void doWithPersistentProperty(MongoPersistentProperty persistentProperty)
276276
appendTextIndexInformation(propertyDotPath, indexDefinitionBuilder,
277277
mappingContext.getRequiredPersistentEntity(persistentProperty.getActualType()), optionsForNestedType, guard);
278278
} catch (CyclicPropertyReferenceException e) {
279-
LOGGER.info(e.getMessage(), e);
279+
LOGGER.info(e.getMessage());
280280
} catch (InvalidDataAccessApiUsageException e) {
281281
LOGGER.info(String.format("Potentially invalid index structure discovered. Breaking operation for %s.",
282282
entity.getName()), e);

0 commit comments

Comments
 (0)