提交 39de64ba 编写于 作者: S Sam Brannen

Log at WARN level in case of contradicting PersistenceUnitManager setup

Closes gh-23257
上级 e8fe4493
......@@ -513,9 +513,9 @@ public class DefaultPersistenceUnitManager
if (buildDefaultUnit) {
if (foundDefaultUnit) {
if (logger.isDebugEnabled()) {
logger.debug("Found explicit default unit with name '" + defaultName + "' in persistence.xml - " +
"overriding local default unit settings ('packagesToScan'/'mappingResources')");
if (logger.isWarnEnabled()) {
logger.warn("Found explicit default persistence unit with name '" + defaultName + "' in persistence.xml - " +
"overriding local default persistence unit settings ('packagesToScan'/'mappingResources')");
}
}
else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册