Преглед изворни кода

Added some info logging for connection close events...
we log connect, might as well log disconnect.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7122 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

PSp..om пре 14 година
родитељ
комит
3fc0d506f4
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      engine/src/networking/com/jme3/network/base/DefaultServer.java

+ 4 - 0
engine/src/networking/com/jme3/network/base/DefaultServer.java

@@ -332,6 +332,8 @@ public class DefaultServer implements Server
 
     protected void connectionClosed( Endpoint p )
     {
+        log.log( Level.INFO, "Connection closed:{0}.", p );
+        
         // Try to find the endpoint in all ways that it might
         // exist.  Note: by this point the channel is closed
         // already.
@@ -355,6 +357,8 @@ public class DefaultServer implements Server
         // so always do this outside the synch block.
         if( removed != null ) {
         
+            log.log( Level.INFO, "Client closed:{0}.", removed );
+        
             // Make sure both endpoints are closed.  Note: reliable
             // should always already be closed through all paths that I
             // can conceive... but it doesn't hurt to be sure.