HHH-12631 Fix invalid tracev calls in DefaultResolveNaturalIdEventListener

This commit is contained in:
Guillaume Smet 2018-05-25 13:13:40 +02:00 committed by Sanne Grinovero
parent 152a8b30db
commit f4483e3576
1 changed files with 17 additions and 14 deletions

View File

@ -57,8 +57,9 @@ public class DefaultResolveNaturalIdEventListener
final boolean traceEnabled = LOG.isTraceEnabled();
if ( traceEnabled ) {
LOG.tracev(
"Attempting to resolve: {0}",
MessageHelper.infoString( persister, event.getNaturalIdValues(), event.getSession().getFactory() )
"Attempting to resolve: {0}#{1}",
MessageHelper.infoString( persister ),
event.getNaturalIdValues()
);
}
@ -66,8 +67,9 @@ public class DefaultResolveNaturalIdEventListener
if ( entityId != null ) {
if ( traceEnabled ) {
LOG.tracev(
"Resolved object in cache: {0}",
MessageHelper.infoString( persister, event.getNaturalIdValues(), event.getSession().getFactory() )
"Resolved object in cache: {0}#{1}",
MessageHelper.infoString( persister ),
event.getNaturalIdValues()
);
}
return entityId;
@ -75,8 +77,9 @@ public class DefaultResolveNaturalIdEventListener
if ( traceEnabled ) {
LOG.tracev(
"Object not resolved in any cache: {0}",
MessageHelper.infoString( persister, event.getNaturalIdValues(), event.getSession().getFactory() )
"Object not resolved in any cache: {0}#{1}",
MessageHelper.infoString( persister ),
event.getNaturalIdValues()
);
}