zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mic...@apache.org
Subject svn commit: r1669062 - in /zookeeper/trunk: CHANGES.txt src/java/main/org/apache/zookeeper/ClientCnxn.java
Date Wed, 25 Mar 2015 07:48:54 GMT
Author: michim
Date: Wed Mar 25 07:48:54 2015
New Revision: 1669062

URL: http://svn.apache.org/r1669062
Log:
ZOOKEEPER-2149 Logging of client address when socket connection established (Hongchao Deng
via michim)

Modified:
    zookeeper/trunk/CHANGES.txt
    zookeeper/trunk/src/java/main/org/apache/zookeeper/ClientCnxn.java

Modified: zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/trunk/CHANGES.txt?rev=1669062&r1=1669061&r2=1669062&view=diff
==============================================================================
--- zookeeper/trunk/CHANGES.txt (original)
+++ zookeeper/trunk/CHANGES.txt Wed Mar 25 07:48:54 2015
@@ -93,6 +93,9 @@ IMPROVEMENTS:
   ZOOKEEPER-2107 zookeeper client should support custom HostProviders 
   (Robert Kamphuis via rakeshr)
 
+  ZOOKEEPER-2149 Logging of client address when socket connection established
+  (Hongchao Deng via michim)
+
 Release 3.5.0 - 8/4/2014
 
 NEW FEATURES:

Modified: zookeeper/trunk/src/java/main/org/apache/zookeeper/ClientCnxn.java
URL: http://svn.apache.org/viewvc/zookeeper/trunk/src/java/main/org/apache/zookeeper/ClientCnxn.java?rev=1669062&r1=1669061&r2=1669062&view=diff
==============================================================================
--- zookeeper/trunk/src/java/main/org/apache/zookeeper/ClientCnxn.java (original)
+++ zookeeper/trunk/src/java/main/org/apache/zookeeper/ClientCnxn.java Wed Mar 25 07:48:54
2015
@@ -965,9 +965,9 @@ public class ClientCnxn {
          * Setup session, previous watches, authentication.
          */
         void primeConnection() throws IOException {
-            LOG.info("Socket connection established to "
-                     + clientCnxnSocket.getRemoteSocketAddress()
-                     + ", initiating session");
+            LOG.info("Socket connection established, initiating session, client: {}, server:
{}",
+                    clientCnxnSocket.getLocalSocketAddress(),
+                    clientCnxnSocket.getRemoteSocketAddress());
             isFirstConnect = false;
             long sessId = (seenRwServerBefore) ? sessionId : 0;
             ConnectRequest conReq = new ConnectRequest(0, lastZxid,



Mime
View raw message