Added a couple more bracketing log messages just to confirm

my own sanity.
Some small formatting changes.
experimental
Paul Speed 9 years ago
parent ab0628c070
commit d241a9a235
  1. 8
      jme3-networking/src/main/java/com/jme3/network/message/SerializerRegistrationsMessage.java

@ -146,15 +146,17 @@ public class SerializerRegistrationsMessage extends AbstractMessage {
// that also run their own servers but realistically they would have // that also run their own servers but realistically they would have
// to disable the ServerSerializerRegistrationsServer anyway. // to disable the ServerSerializerRegistrationsServer anyway.
if( compiled != null ) { if( compiled != null ) {
log.log( Level.INFO, "Skipping registration as registry is locked, presumably by a local server process."); log.log(Level.INFO, "Skipping registration as registry is locked, presumably by a local server process.");
return; return;
} }
} }
log.log(Level.FINE, "Registering {0} classes...", registrations.length);
for( Registration reg : registrations ) { for( Registration reg : registrations ) {
log.log( Level.INFO, "Registering:{0}", reg); log.log(Level.INFO, "Registering:{0}", reg);
reg.register(); reg.register();
} }
log.log(Level.FINE, "Done registering serializable classes.");
} }
@Serializable @Serializable
@ -187,7 +189,7 @@ public class SerializerRegistrationsMessage extends AbstractMessage {
serializer = (Serializer)serializerType.newInstance(); serializer = (Serializer)serializerType.newInstance();
} }
SerializerRegistration result = Serializer.registerClassForId(id, type, serializer); SerializerRegistration result = Serializer.registerClassForId(id, type, serializer);
log.log( Level.FINE, " result:{0}", result); log.log(Level.FINE, " result:{0}", result);
} catch( ClassNotFoundException e ) { } catch( ClassNotFoundException e ) {
throw new RuntimeException( "Class not found attempting to register:" + this, e ); throw new RuntimeException( "Class not found attempting to register:" + this, e );
} catch( InstantiationException e ) { } catch( InstantiationException e ) {

Loading…
Cancel
Save