Chris Popp (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZGM4YTkwODkw...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-14139?atlOrigin=eyJpIjoiZGM4YT...
) HHH-14139 (
https://hibernate.atlassian.net/browse/HHH-14139?atlOrigin=eyJpIjoiZGM4YT...
) BasicBinder Trace Logging Causes Duplicated Messagee (
https://hibernate.atlassian.net/browse/HHH-14139?atlOrigin=eyJpIjoiZGM4YT...
)
Issue Type: Bug Affects Versions: 6.0.0.Alpha5, 5.4.19 Assignee: Unassigned Created:
06/Aug/2020 16:26 PM Priority: Major Reporter: Chris Popp (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
When binding a parameter that includes the text {} the BasicBinder String.format call will
include the value as part of the messagePattern passed to the logger. When using log4j {}
is interpreted as a variable to be replaced by a argument, and since no arguments are
supplied the entire message is considered to be an argument.
As a result, when a log message should be: binding parameter [2] as [VARCHAR] - [{}]
it ends up getting logged as: binding parameter [2] as [VARCHAR] - [binding parameter [2]
as [VARCHAR] - [{}]]
(
https://hibernate.atlassian.net/browse/HHH-14139#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14139#add-comment?atlOrigin=ey...
)
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....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100141- sha1:76df2fe )