Skip to content

Commit 7cb16de

Browse files
missingdaysgregturn
authored andcommitted
Fix debug logging in MergingPersistenceUnitManager.
A String.format token was missing, so `mappingFileName` was printed instead of a `persistenceUnitName`, and `persistenceUnitName` wasn't actually printed at all. See #2526.
1 parent 8ea70c1 commit 7cb16de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-data-jpa/src/main/java/org/springframework/data/jpa/support/MergingPersistenceUnitManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void postProcessPersistenceUnitInfo(MutablePersistenceUnitInfo pui, PersistenceU
8282
if (!pui.getMappingFileNames().contains(mappingFileName)) {
8383

8484
if (LOG.isDebugEnabled()) {
85-
LOG.debug(String.format("Adding mapping file to persistence unit %s.", mappingFileName, persistenceUnitName));
85+
LOG.debug(String.format("Adding mapping file %s to persistence unit %s.", mappingFileName, persistenceUnitName));
8686
}
8787
pui.addMappingFileName(mappingFileName);
8888
}

0 commit comments

Comments
 (0)