Revised log levels: less WARN and INFO, fine-tuned DEBUG vs TRACE
Issue: SPR-16946
This commit is contained in:
@@ -374,8 +374,8 @@ public class HibernateTransactionManager extends AbstractPlatformTransactionMana
|
||||
DataSource sfds = SessionFactoryUtils.getDataSource(getSessionFactory());
|
||||
if (sfds != null) {
|
||||
// Use the SessionFactory's DataSource for exposing transactions to JDBC code.
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info("Using DataSource [" + sfds +
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Using DataSource [" + sfds +
|
||||
"] of Hibernate SessionFactory for HibernateTransactionManager");
|
||||
}
|
||||
setDataSource(sfds);
|
||||
|
||||
@@ -357,8 +357,8 @@ public class LocalContainerEntityManagerFactoryBean extends AbstractEntityManage
|
||||
provider = (PersistenceProvider) BeanUtils.instantiateClass(providerClass);
|
||||
}
|
||||
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info("Building JPA container EntityManagerFactory for persistence unit '" +
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Building JPA container EntityManagerFactory for persistence unit '" +
|
||||
this.persistenceUnitInfo.getPersistenceUnitName() + "'");
|
||||
}
|
||||
EntityManagerFactory emf =
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -77,8 +77,8 @@ public class LocalEntityManagerFactoryBean extends AbstractEntityManagerFactoryB
|
||||
*/
|
||||
@Override
|
||||
protected EntityManagerFactory createNativeEntityManagerFactory() throws PersistenceException {
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info("Building JPA EntityManagerFactory for persistence unit '" + getPersistenceUnitName() + "'");
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Building JPA EntityManagerFactory for persistence unit '" + getPersistenceUnitName() + "'");
|
||||
}
|
||||
PersistenceProvider provider = getPersistenceProvider();
|
||||
if (provider != null) {
|
||||
|
||||
@@ -513,8 +513,8 @@ public class DefaultPersistenceUnitManager
|
||||
|
||||
if (buildDefaultUnit) {
|
||||
if (foundDefaultUnit) {
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info("Found explicit default unit with name '" + defaultName + "' in persistence.xml - " +
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Found explicit default unit with name '" + defaultName + "' in persistence.xml - " +
|
||||
"overriding local default unit settings ('packagesToScan'/'mappingResources')");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user