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
This commit is contained in:
parent
99a21a8c1d
commit
3fc0d506f4
@ -332,6 +332,8 @@ public class DefaultServer implements Server
|
|||||||
|
|
||||||
protected void connectionClosed( Endpoint p )
|
protected void connectionClosed( Endpoint p )
|
||||||
{
|
{
|
||||||
|
log.log( Level.INFO, "Connection closed:{0}.", p );
|
||||||
|
|
||||||
// Try to find the endpoint in all ways that it might
|
// Try to find the endpoint in all ways that it might
|
||||||
// exist. Note: by this point the channel is closed
|
// exist. Note: by this point the channel is closed
|
||||||
// already.
|
// already.
|
||||||
@ -355,6 +357,8 @@ public class DefaultServer implements Server
|
|||||||
// so always do this outside the synch block.
|
// so always do this outside the synch block.
|
||||||
if( removed != null ) {
|
if( removed != null ) {
|
||||||
|
|
||||||
|
log.log( Level.INFO, "Client closed:{0}.", removed );
|
||||||
|
|
||||||
// Make sure both endpoints are closed. Note: reliable
|
// Make sure both endpoints are closed. Note: reliable
|
||||||
// should always already be closed through all paths that I
|
// should always already be closed through all paths that I
|
||||||
// can conceive... but it doesn't hurt to be sure.
|
// can conceive... but it doesn't hurt to be sure.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user