[hibernate-dev] OGM - BasicGridBinder log issue

Guillaume SCHEIBEL guillaume.scheibel at gmail.com
Thu Mar 15 05:54:51 EDT 2012


Hello,

I have noticed that the BasicGridBinder has a problem when it logs the
bindding  ( BasicGridBinder.bind(Tuple, X, String[] ) method).
Actually, the trace is "binding [$s] to parameter(s) $s" but it should be
"binding [thevalue] to parameter(s) theparameter".
It can be fixed easily by modifying the two calls to log.tracef() (line 70
and 76) respectively like that:

log.tracef( "binding [null] to parameter [%1$s]", name );
and
log.tracef( "binding [%1$s] to parameter(s) %2$s",
javaDescriptor.extractLoggableRepresentation( value ), Arrays.toString(
names ) );

Should a new Jira be opened or I can inclued it into OGM-123 (mongodb
implementation) ?

Cheers,
Guillaume



More information about the hibernate-dev mailing list