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

Modify SessionImpl.toString to be quiet by default and verbose when trace is enabled

Description

SessionImpl.toString is extremely verbose and does not consult TRACE_ENABLED before logging everything including the persistenceContext which can be quite large. Consider using TRACE_ENABLED to determine if that level of detail should be provided. Otherwise, just log the instance id and return.

Environment

None

Status

Assignee

Walter White

Reporter

Walter White

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.3.1

Priority

Trivial