HHH-8878 Fix logged message about PooledLoOptimizer being created

This commit is contained in:
Sanne Grinovero 2014-02-26 00:12:06 +00:00 committed by Brett Meyer
parent 7b3f1408f3
commit 03fa305667
2 changed files with 5 additions and 3 deletions

View File

@ -513,9 +513,7 @@ public class OptimizerFactory {
if ( incrementSize < 1 ) {
throw new HibernateException( "increment size cannot be less than 1" );
}
if ( LOG.isTraceEnabled() ) {
LOG.tracev( "Creating pooled optimizer (lo) with [incrementSize={0}; returnClass=]", incrementSize, returnClass.getName() );
}
LOG.creatingPooledLoOptimizer( incrementSize, returnClass.getName() );
}
@Override

View File

@ -1646,4 +1646,8 @@ public interface CoreMessageLogger extends BasicLogger {
"(%2$s=true)"
)
void applyingExplicitDiscriminatorColumnForJoined(String className, String overrideSetting);
@LogMessage(level = DEBUG)
@Message(value = "Creating pooled optimizer (lo) with [incrementSize=%s; returnClass=%s]", id = 458)
void creatingPooledLoOptimizer(int incrementSize, String name);
}