Quellcode durchsuchen

ZOOKEEPER-746. learner outputs session id to log in dec

git-svn-id: https://svn.apache.org/repos/asf/hadoop/zookeeper/trunk@937925 13f79535-47bb-0310-9956-ffa450edef68
Henry Robinson vor 15 Jahren
Ursprung
Commit
22e330464a
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/java/main/org/apache/zookeeper/server/quorum/Learner.java

+ 3 - 0
CHANGES.txt

@@ -22,6 +22,9 @@ BUGFIXES:
 
   ZOOKEEPER-631. zkpython's C code could do with a style clean-up
   (henry robinson via phunt)
+  
+  ZOOKEEPER-746. learner outputs session id to log in dec (phunt via
+  henryr)
 
 IMPROVEMENTS:
   ZOOKEEPER-724. Improve junit test integration - log harness information 

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

@@ -92,7 +92,7 @@ public class Learner {
      */
     void validateSession(ServerCnxn cnxn, long clientId, int timeout)
             throws IOException, InterruptedException {
-        LOG.info("Revalidating client: " + clientId);
+        LOG.info("Revalidating client: 0x" + Long.toHexString(clientId));
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         DataOutputStream dos = new DataOutputStream(baos);
         dos.writeLong(clientId);