Skip to content

Commit

Permalink
HHH-13416 Unguarded debug message being rendered in org.hibernate.eng…
Browse files Browse the repository at this point in the history
…ine.internal.Collections.processReachableCollection
  • Loading branch information
Sanne committed May 27, 2019
1 parent b7b8f44 commit 4be05af
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 4be05af

Please sign in to comment.