We're updating the issue view to help you get more done. 

The dirtyPropertyNames content is NOT logged properly

Description

While tracing the dirty checking with SLF4J+logback to find the dirty property names and got a log entry like below

1 org.hibernate.event.internal.DefaultFlushEntityEventListener - Found dirty properties [[packagename.entityclass#9742239717]] : [Ljava.lang.String;@68abb468

Which the contents of dirtyPropertyNames are NOT printed, but the type and object id.
The log statement needs to use Arrays.toString to print the contents of dirtyPropertyNames.

1 2 3 4 5 6 7 //original code from org.hibernate.event.internal.DefaultFlushEntityEventListener in hibernate-core LOG.tracev( "Found dirty properties [{0}] : {1}", MessageHelper.infoString( persister.getEntityName(), id ), dirtyPropertyNames //recommend to use Arrays.toString(dirtyPropertyNames) );

Environment

All hibernate versions, database independent.

Status

Assignee

Vlad Mihalcea

Reporter

Xiaobo Liao

Fix versions

Labels

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

backportDecision

None

Components

Affects versions

5.2.5

Priority

Trivial