hibernate/hibernate-core — pull request #223 by Sanne (2011-11-23 00:22:24+00:00)
Title: HHH-6817 Logging of strings containing the percent character broken

It seems very important to use just LOG.debug() when there is a single parameter, i.e. the message only.

Otherwise the message will be considered as a template for String formatting, and any % in it will trigger a runtime exception.

Same for LOG.trace : it might cause blocking runtime exceptions, and swallow both the message and the failure.

Of secondary importance, performance: we can skip formatting at all as there is no reason to.