HHH-16234 Log identity hash code instead to calling instance.toString()

when resolving entity instance
This commit is contained in:
Marco Belladelli 2023-03-14 12:03:55 +01:00 committed by Christian Beikov
parent 8881c7fa13
commit 204278164d
2 changed files with 5 additions and 2 deletions

View File

@ -676,7 +676,7 @@ public abstract class AbstractEntityInitializer extends AbstractFetchParentAcces
"(%s) Created new entity instance [%s] : %s",
getSimpleConcreteImplName(),
toLoggableString( getNavigablePath(), entityIdentifier ),
instance
System.identityHashCode( instance )
);
}
return instance;

View File

@ -99,6 +99,9 @@ logger.java-type-descriptor-registry.level=debug
logger.bytecode-enhancement.name=org.hibernate.bytecode.enhance
logger.bytecode-enhancement.level=debug
logger.results-loading-entity.name=org.hibernate.orm.results.loading.entity
#logger.results-loading-entity.level=debug
logger.entity-action.name=org.hibernate.action.internal.EntityAction
#logger.entity-action.level=debug
logger.cascade.name=org.hibernate.engine.internal.Cascade