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,14 +78,16 @@ public abstract class BasicBinder<J> implements ValueBinder<J> {
|
|||
st.setNull( index, sqlDescriptor.getSqlType() );
|
||||
}
|
||||
else {
|
||||
log.trace(
|
||||
String.format(
|
||||
BIND_MSG_TEMPLATE,
|
||||
index,
|
||||
JdbcTypeNameMapper.getTypeName( sqlDescriptor.getSqlType() ),
|
||||
getJavaDescriptor().extractLoggableRepresentation( value )
|
||||
)
|
||||
);
|
||||
if ( log.isTraceEnabled() ) {
|
||||
log.trace(
|
||||
String.format(
|
||||
BIND_MSG_TEMPLATE,
|
||||
index,
|
||||
JdbcTypeNameMapper.getTypeName( sqlDescriptor.getSqlType() ),
|
||||
getJavaDescriptor().extractLoggableRepresentation( value )
|
||||
)
|
||||
);
|
||||
}
|
||||
doBind( st, value, index, options );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue