mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-25 21:04:51 +00:00
HHH-13416 Unguarded debug message being rendered in org.hibernate.engine.internal.Collections.processReachableCollection
This commit is contained in:
parent
b7b8f44298
commit
4be05af86d
@ -167,10 +167,12 @@ public static void processReachableCollection(
|
||||
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…
x
Reference in New Issue
Block a user