This is an automated email from the ASF dual-hosted git repository.

maoling pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zookeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 04f3d18  ZOOKEEPER-3800: improve the log printing the address when 
QuorumCnxManager#ListenerHandler's port binds
04f3d18 is described below

commit 04f3d183de5543bcde7ad2f8b99ca847677f847d
Author: Nishanth Entoor <[email protected]>
AuthorDate: Sun Dec 26 14:47:08 2021 +0800

    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 <[email protected]>
    Author: Nishanth Entoor <[email protected]>
    
    Reviewers: rabi-kumar <[email protected]>, maoling <[email protected]>
    
    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
---
 .../main/java/org/apache/zookeeper/server/quorum/QuorumCnxManager.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumCnxManager.java
 
b/zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumCnxManager.java
index 6bb611f..9d9f8bd 100644
--- 
a/zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumCnxManager.java
+++ 
b/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);

Reply via email to