From 3fc0d506f411c439c2c16c4a9a8337fdc06b24a0 Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Sun, 27 Mar 2011 05:37:06 +0000 Subject: [PATCH] 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 --- .../src/networking/com/jme3/network/base/DefaultServer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/src/networking/com/jme3/network/base/DefaultServer.java b/engine/src/networking/com/jme3/network/base/DefaultServer.java index c71f7aa55..d01d12063 100644 --- a/engine/src/networking/com/jme3/network/base/DefaultServer.java +++ b/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.