stliu/hibernate-orm — comment on commit 7ef61017700daa6cd9a3cd80eaf2932eff4a107d
File: hibernate-core/src/main/java/org/hibernate/engine/query/spi/QueryPlanCache.java line 167
By sebersole:

I don't think "logging protections" like this gain you anything, unless JBoss Logging is totally different from other log impls out there. Or maybe its a variance between the tracev and tracef variants.

But, generally the log impl will do log level checks prior to actually applying the formatting.