Fix logging in AbstractCollectionInitializer

The previous version of the code lead to misleading
log statements being printed when debug logging
was enabled for 'org.hibernate.orm.results.loading.collection'
This commit is contained in:
Georgios Andrianakis 2023-02-23 07:29:22 +02:00 committed by Christian Beikov
parent 20212c217c
commit d922b60a74
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ public abstract class AbstractCollectionInitializer implements CollectionInitial
if ( CollectionLoadingLogger.DEBUG_ENABLED ) {
CollectionLoadingLogger.COLL_LOAD_LOGGER.debugf(
"(%s) Current row collection key : %s",
DelayedCollectionInitializer.class.getSimpleName(),
this.getClass().getSimpleName(),
LoggingHelper.toLoggableString( getNavigablePath(), this.collectionKey.getKey() )
);
}