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:
parent
adb81781ca
commit
a0633b84fe
|
@ -2316,9 +2316,13 @@ public final class SessionImpl
|
||||||
StringBuilder buf = new StringBuilder( 500 )
|
StringBuilder buf = new StringBuilder( 500 )
|
||||||
.append( "SessionImpl(" );
|
.append( "SessionImpl(" );
|
||||||
if ( !isClosed() ) {
|
if ( !isClosed() ) {
|
||||||
|
if(TRACE_ENABLED) {
|
||||||
buf.append( persistenceContext )
|
buf.append( persistenceContext )
|
||||||
.append( ";" )
|
.append( ";" )
|
||||||
.append( actionQueue );
|
.append( actionQueue );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
buf.append("<open>");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
buf.append( "<closed>" );
|
buf.append( "<closed>" );
|
||||||
|
|
Loading…
Reference in New Issue