HHH-12692 SessionImpl#toString - remove overly verbose output

Is toString used, if so, when do we need to see the actionQueue or persistenceContext?
TRACE?
This commit is contained in:
Walter White 2018-06-06 23:22:44 -04:00 committed by Sanne Grinovero
parent adb81781ca
commit a0633b84fe
1 changed files with 4 additions and 0 deletions

View File

@ -2316,9 +2316,13 @@ public final class SessionImpl
StringBuilder buf = new StringBuilder( 500 )
.append( "SessionImpl(" );
if ( !isClosed() ) {
if(TRACE_ENABLED) {
buf.append( persistenceContext )
.append( ";" )
.append( actionQueue );
}
else
buf.append("<open>");
}
else {
buf.append( "<closed>" );