[hibernate-dev] JDBC warnings performance matter
Emmanuel Bernard
emmanuel at hibernate.org
Thu Jan 28 02:46:50 EST 2016
If that’s effectively widespread, I think indeed we should guard this feature with an explicit property.
It’s not necessarily easy to anticipate such consequences when designing things.
In insight, something more explicit looks better.
> On 28 Jan 2016, at 06:25, Vlad Mihalcea <mihalcea.vlad at gmail.com> wrote:
>
> Hi,
>
> The guys at Plumbr wrote an article about how MySQL JDBC warnings are
> handled by Hibernate:
>
> https://plumbr.eu/blog/io/how-we-accidentally-doubled-our-jdbc-traffic-with-hibernate
>
> I remember seeing this issue on StackOverflow too and I was curious if you
> want to tweak it a little bit.
> I also agree that relying on the log levels to prevent fetching warnings
> might come as a surprise to many users and we should document this behavior.
>
> We could also have a hibernate.jdbc.log.warnings boolean property to
> control whether we want to log those warnings or not.
> This way, if users set the logger level to WARN, they will see the logs
> generated by the framework stack and the JDBC warnings will be logged only
> if this configuration property is true.
>
> What do you think?
>
> Vlad
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
More information about the hibernate-dev
mailing list