OSDN Git Service

Added some info logging for connection close events...
authorPSpeed42@gmail.com <PSpeed42@gmail.com@75d07b2b-3a1a-0410-a2c5-0572b91ccdca>
Sun, 27 Mar 2011 05:37:06 +0000 (05:37 +0000)
committerPSpeed42@gmail.com <PSpeed42@gmail.com@75d07b2b-3a1a-0410-a2c5-0572b91ccdca>
Sun, 27 Mar 2011 05:37:06 +0000 (05:37 +0000)
we log connect, might as well log disconnect.

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

engine/src/networking/com/jme3/network/base/DefaultServer.java

index c71f7aa..d01d120 100644 (file)
@@ -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.