LOG_SLOW_QUERY parameter doesn't log query

Description

I used parameter AvailableSettings.LOG_SLOW_QUERY to log slow query. But instead of query it logged only PreparedStatement.toString(). As result when I use Oracle JDBC Driver with HikariCP, there is no query in logged statement:

org.hibernate.SQL_SLOW : SlowQuery: 80 milliseconds. SQL: 'HikariProxyPreparedStatement@1363216410 wrapping oracle.jdbc.driver.OraclePreparedStatementWrapper@279aac5f'

Environment

None

Assignee

Unassigned

Reporter

Vladimir Kachanov

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure