There are a few INFO logs that really should be debug logs, because they don’t bring useful information to users and/or represent normal operation. In particular, on startup:
- org.hibernate.internal.CoreMessageLogger#lazyPropertyFetchingAvailable: “Lazy property fetching available for <property name>“. This appears as soon as we annotate a property with @Basic(fetch = LAZY), and I don’t think it’s necessary to remind the user of their mapping.
And worse, at runtime:
- org.hibernate.internal.CoreMessageLogger#handlingTransientEntity: "Handling transient entity in delete processing": apparently this behavior was added to comply with JPA spec. Why would we log at info level that we’re complying with JPA every time a transient entity is passed to delete? It may be weird, but if it’s according to spec… ?
|