HHH-9508 Improve trace logging in ActionQueue
This commit is contained in:
parent
3aa2b8dfec
commit
555e229cc2
|
@ -667,14 +667,19 @@ public class ActionQueue {
|
||||||
* @throws ClassNotFoundException Generally means we were unable to locate user classes.
|
* @throws ClassNotFoundException Generally means we were unable to locate user classes.
|
||||||
*/
|
*/
|
||||||
public static ActionQueue deserialize(ObjectInputStream ois, SessionImplementor session) throws IOException, ClassNotFoundException {
|
public static ActionQueue deserialize(ObjectInputStream ois, SessionImplementor session) throws IOException, ClassNotFoundException {
|
||||||
|
final boolean traceEnabled = LOG.isTraceEnabled();
|
||||||
|
if ( traceEnabled ) {
|
||||||
LOG.trace( "Deserializing action-queue" );
|
LOG.trace( "Deserializing action-queue" );
|
||||||
|
}
|
||||||
ActionQueue rtn = new ActionQueue( session );
|
ActionQueue rtn = new ActionQueue( session );
|
||||||
|
|
||||||
rtn.unresolvedInsertions = UnresolvedEntityInsertActions.deserialize( ois, session );
|
rtn.unresolvedInsertions = UnresolvedEntityInsertActions.deserialize( ois, session );
|
||||||
|
|
||||||
for ( ExecutableList<?> l : rtn.executableLists ) {
|
for ( ExecutableList<?> l : rtn.executableLists ) {
|
||||||
l.readExternal( ois );
|
l.readExternal( ois );
|
||||||
|
if ( traceEnabled ) {
|
||||||
LOG.tracev( "Deserialized [{0}] entries", l.size() );
|
LOG.tracev( "Deserialized [{0}] entries", l.size() );
|
||||||
|
}
|
||||||
l.afterDeserialize( session );
|
l.afterDeserialize( session );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue