HHH-13452 Missing log level guard on formatting in DefaultPersistEventListener#entityIsDeleted
This commit is contained in:
parent
3ba72c8b13
commit
cf1b7c3c12
|
@ -200,14 +200,16 @@ public class DefaultPersistEventListener
|
||||||
final Object entity = source.getPersistenceContext().unproxy( event.getObject() );
|
final Object entity = source.getPersistenceContext().unproxy( event.getObject() );
|
||||||
final EntityPersister persister = source.getEntityPersister( event.getEntityName(), entity );
|
final EntityPersister persister = source.getEntityPersister( event.getEntityName(), entity );
|
||||||
|
|
||||||
LOG.tracef(
|
if ( LOG.isTraceEnabled() ) {
|
||||||
|
LOG.tracef(
|
||||||
"un-scheduling entity deletion [%s]",
|
"un-scheduling entity deletion [%s]",
|
||||||
MessageHelper.infoString(
|
MessageHelper.infoString(
|
||||||
persister,
|
persister,
|
||||||
persister.getIdentifier( entity, source ),
|
persister.getIdentifier( entity, source ),
|
||||||
source.getFactory()
|
source.getFactory()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if ( createCache.put( entity, entity ) == null ) {
|
if ( createCache.put( entity, entity ) == null ) {
|
||||||
justCascade( createCache, source, entity, persister );
|
justCascade( createCache, source, entity, persister );
|
||||||
|
|
Loading…
Reference in New Issue