Skip to content

Commit

Permalink
HHH-9508 Improve trace logging in ActionQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne committed Nov 18, 2014
1 parent 498214b commit fa90757
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -667,14 +667,19 @@ public void serialize(ObjectOutputStream oos) throws IOException {
* @throws ClassNotFoundException Generally means we were unable to locate user classes.
*/
public static ActionQueue deserialize(ObjectInputStream ois, SessionImplementor session) throws IOException, ClassNotFoundException {
LOG.trace( "Deserializing action-queue" );
final boolean traceEnabled = LOG.isTraceEnabled();
if ( traceEnabled ) {
LOG.trace( "Deserializing action-queue" );
}
ActionQueue rtn = new ActionQueue( session );

rtn.unresolvedInsertions = UnresolvedEntityInsertActions.deserialize( ois, session );

for ( ExecutableList<?> l : rtn.executableLists ) {
l.readExternal( ois );
LOG.tracev( "Deserialized [{0}] entries", l.size() );
if ( traceEnabled ) {
LOG.tracev( "Deserialized [{0}] entries", l.size() );
}
l.afterDeserialize( session );
}

Expand Down

0 comments on commit fa90757

Please sign in to comment.