Pārlūkot izejas kodu

ZOOKEEPER-3800: improve the log printing the address when QuorumCnxManager#ListenerHandler's port binds

As per [ZOOKEEPER-3800](https://issues.apache.org/jira/browse/ZOOKEEPER-3800), I updated the log message to print the address.

Please let me know if additional changes are required.

Author: Nishanth Entoor <entoor.nishanth@gamil.com>
Author: Nishanth Entoor <entoor.nishanth@gmail.com>

Reviewers: rabi-kumar <ravowlga@gmail.com>, maoling <maoling@apache.org>

Closes #1332 from nishanth-entoor/ZOOKEEPER-3800 and squashes the following commits:

6969ab93c [Nishanth Entoor] ZOOKEEPER-3800: changed log error message
5ae7b1eb6 [Nishanth Entoor] ZOOKEEPER-3800: improve the log printing the address when QuorumCnxManager#ListenerHandler's port binds
Nishanth Entoor 3 gadi atpakaļ
vecāks
revīzija
04f3d183de

+ 1 - 1
zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumCnxManager.java

@@ -1096,7 +1096,7 @@ public class QuorumCnxManager {
                             break;
                         }
 
-                        LOG.error("Exception while listening", e);
+                        LOG.error("Exception while listening to address {}", address, e);
 
                         if (e instanceof SocketException) {
                             socketException.set(true);