[hibernate-issues] [JIRA] (HHH-11082) Log the failing SQL when the batched execution throws a RuntimeException (e.g. StaleStateException)

Mickaël TRICOT (JIRA) jira at hibernate.atlassian.net
Fri Apr 3 10:47:04 EDT 2020


Mickaël TRICOT ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A0d3f573f-438e-4be7-b5ec-528c5465e34b ) *commented* on HHH-11082 ( https://hibernate.atlassian.net/browse/HHH-11082?atlOrigin=eyJpIjoiZWQxYTExYmJkNzlmNGQ2OWE1M2NiOTJjMzc2ZDYyMzMiLCJwIjoiaiJ9 )

Re: Log the failing SQL when the batched execution throws a RuntimeException (e.g. StaleStateException) ( https://hibernate.atlassian.net/browse/HHH-11082?atlOrigin=eyJpIjoiZWQxYTExYmJkNzlmNGQ2OWE1M2NiOTJjMzc2ZDYyMzMiLCJwIjoiaiJ9 )

Hello, I have a problem with this (nice) improvement: some sensible data are leaking in my logs. Do you think that could be an option to add the statement conditionnaly, for instance only when hibernate.show_sql=true ? Thanks

( https://hibernate.atlassian.net/browse/HHH-11082#add-comment?atlOrigin=eyJpIjoiZWQxYTExYmJkNzlmNGQ2OWE1M2NiOTJjMzc2ZDYyMzMiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-11082#add-comment?atlOrigin=eyJpIjoiZWQxYTExYmJkNzlmNGQ2OWE1M2NiOTJjMzc2ZDYyMzMiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100124- sha1:7217f9f )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200403/d6f4cab3/attachment.html 


More information about the hibernate-issues mailing list