| When a StaleStateException is raised, the statement is always added to the exception message. As a result, sensible data may leak in the logs, without any option to turn it off (apart from hiding the exceptions, which does not sound like a good option) My first idea would be to add the statement conditionally (if `show_sql` is true for instance, or any other option). Also see: HHH-11082 Closed HHH-12878 Closed |