HHH-13416 Unguarded debug message being rendered in org.hibernate.engine.internal.Collections.processReachableCollection
This commit is contained in:
parent
e9d2bfeec5
commit
784341682d
|
@ -167,10 +167,12 @@ public final class Collections {
|
|||
final boolean isBytecodeEnhanced = persister.getOwnerEntityPersister().getInstrumentationMetadata().isEnhancedForLazyLoading();
|
||||
if ( isBytecodeEnhanced && !collection.wasInitialized() ) {
|
||||
// skip it
|
||||
LOG.debugf(
|
||||
"Skipping uninitialized bytecode-lazy collection: %s",
|
||||
MessageHelper.collectionInfoString( persister, collection, ce.getCurrentKey(), session )
|
||||
);
|
||||
if ( LOG.isDebugEnabled() ) {
|
||||
LOG.debugf(
|
||||
"Skipping uninitialized bytecode-lazy collection: %s",
|
||||
MessageHelper.collectionInfoString(persister, collection, ce.getCurrentKey(), session)
|
||||
);
|
||||
}
|
||||
ce.setReached( true );
|
||||
ce.setProcessed( true );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue