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.
This commit is contained in:
committed by
Greg L. Turnquist
parent
8ea70c1e42
commit
7cb16de9e1
@@ -82,7 +82,7 @@ public class MergingPersistenceUnitManager extends DefaultPersistenceUnitManager
|
||||
if (!pui.getMappingFileNames().contains(mappingFileName)) {
|
||||
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug(String.format("Adding mapping file to persistence unit %s.", mappingFileName, persistenceUnitName));
|
||||
LOG.debug(String.format("Adding mapping file %s to persistence unit %s.", mappingFileName, persistenceUnitName));
|
||||
}
|
||||
pui.addMappingFileName(mappingFileName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user