Author: ron.sigal(a)jboss.com
Date: 2009-05-14 21:40:05 -0400 (Thu, 14 May 2009)
New Revision: 5215
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/ConnectionNotifier.java
Log:
JBREM-1132: Improved logging.
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/ConnectionNotifier.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/ConnectionNotifier.java 2009-05-15
01:34:54 UTC (rev 5214)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/ConnectionNotifier.java 2009-05-15
01:40:05 UTC (rev 5215)
@@ -43,7 +43,7 @@
{
try
{
- log.debug("Server connection lost to client (session id = " +
clientSessionId);
+ log.debug(this + " Server connection lost to client (session id = " +
clientSessionId);
Client client = new Client(new InvokerLocator(locatorurl), requestPayload);
client.setSessionId(clientSessionId);
@@ -56,7 +56,9 @@
Iterator it = localListeners.iterator();
while (it.hasNext())
{
- ((ConnectionListener) it.next()).handleConnectionException(null, client);
+ ConnectionListener listener = (ConnectionListener) it.next();
+ listener.handleConnectionException(null, client);
+ log.debug(this + " notified " + listener + " of connection
lost to: " + clientSessionId);
}
}
catch(Exception e)
@@ -71,7 +73,7 @@
{
if(log.isTraceEnabled())
{
- log.trace("Client disconnected (session id = " + clientSessionId);
+ log.trace(this + " Client disconnected (session id = " +
clientSessionId);
}
Client client = new Client(new InvokerLocator(locatorURL), requestPayload);
client.setSessionId(clientSessionId);
Show replies by date