It would be great to only check the logging level once rather than on every iteration in a loop. The proposed change assigns a variable with a boolean. Inside the loop the variable is checked.
All environments and databases that cause Loader.java to be invoked.
Thanks to for the pull request: https://github.com/hibernate/hibernate-orm/pull/487