HHH-5843 Adding a log.isTraceEnabled call before the actual log call
Not really related to the HQL parsing, but it is also a small logging performance change
This commit is contained in:
parent
bfa3a0e32b
commit
3cfb1904e5
|
@ -78,6 +78,7 @@ public abstract class BasicBinder<J> implements ValueBinder<J> {
|
||||||
st.setNull( index, sqlDescriptor.getSqlType() );
|
st.setNull( index, sqlDescriptor.getSqlType() );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if ( log.isTraceEnabled() ) {
|
||||||
log.trace(
|
log.trace(
|
||||||
String.format(
|
String.format(
|
||||||
BIND_MSG_TEMPLATE,
|
BIND_MSG_TEMPLATE,
|
||||||
|
@ -86,6 +87,7 @@ public abstract class BasicBinder<J> implements ValueBinder<J> {
|
||||||
getJavaDescriptor().extractLoggableRepresentation( value )
|
getJavaDescriptor().extractLoggableRepresentation( value )
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
}
|
||||||
doBind( st, value, index, options );
|
doBind( st, value, index, options );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue