Early log entry for async EntityManagerFactory initialization failure
Closes gh-26093
This commit is contained in:
@@ -418,10 +418,13 @@ public abstract class AbstractEntityManagerFactoryBean implements
|
||||
String message = ex.getMessage();
|
||||
String causeString = cause.toString();
|
||||
if (!message.endsWith(causeString)) {
|
||||
throw new PersistenceException(message + "; nested exception is " + causeString, cause);
|
||||
ex = new PersistenceException(message + "; nested exception is " + causeString, cause);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (logger.isErrorEnabled()) {
|
||||
logger.error("Failed to initialize JPA EntityManagerFactory: " + ex.getMessage());
|
||||
}
|
||||
throw ex;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user