Skip to content

Commit 0896c23

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 e549391 commit 0896c23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

9292
if (LOG.isDebugEnabled()) {
93-
LOG.debug(String.format("Adding mapping file to persistence unit %s.", mappingFileName, persistenceUnitName));
93+
LOG.debug(String.format("Adding mapping file %s to persistence unit %s.", mappingFileName, persistenceUnitName));
9494
}
9595
pui.addMappingFileName(mappingFileName);
9696
}

0 commit comments

Comments
 (0)