Hibernate only uses info level on logger message to disencourage Hibernate Pool Manager. This should be a warning.
Description
I usually work with Log4J set to WARN for Hibernate, and debug for my applications' log messages.
I was testing some hibernate connection problems, and I enabled the INFO level for org.hibernate package. On a project I am testing, I got this message:
INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
Despite I knew that the connection pool of Hibernate is not for production use (because I read the documentation quite throughly), I believe that this should be a WARN level log message.
This will help all novice users be warned by Hibernate itself about dangerous usage of the connection pool that might be overlooked when reading the documentation.
Activity
Show:
Brett MeyerJanuary 2, 2014 at 8:18 PM
Will eventually be in master/5.0.0, but on hold for our metamodel->master branch merge.
I usually work with Log4J set to WARN for Hibernate, and debug for my applications' log messages.
I was testing some hibernate connection problems, and I enabled the INFO level for org.hibernate package. On a project I am testing, I got this message:
INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
Despite I knew that the connection pool of Hibernate is not for production use (because I read the documentation quite throughly), I believe that this should be a WARN level log message.
This will help all novice users be warned by Hibernate itself about dangerous usage of the connection pool that might be overlooked when reading the documentation.