cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1033476 - /cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ReadVerbHandler.java
Date Wed, 10 Nov 2010 14:06:57 GMT
Author: jbellis
Date: Wed Nov 10 14:06:56 2010
New Revision: 1033476

URL: http://svn.apache.org/viewvc?rev=1033476&view=rev
Log:
fix logging message to use bytesToHex
patch by jbellis

Modified:
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ReadVerbHandler.java

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ReadVerbHandler.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ReadVerbHandler.java?rev=1033476&r1=1033475&r2=1033476&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ReadVerbHandler.java
(original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ReadVerbHandler.java
Wed Nov 10 14:06:56 2010
@@ -93,7 +93,8 @@ public class ReadVerbHandler implements 
 
             Message response = message.getReply(FBUtilities.getLocalAddress(), bytes);
             if (logger_.isDebugEnabled())
-              logger_.debug("Read key " + command.key + "; sending response to " + message.getMessageId()
+ "@" + message.getFrom());
+              logger_.debug(String.format("Read key %s; sending response to %s@%s",
+                                          FBUtilities.bytesToHex(command.key), message.getMessageId(),
message.getFrom()));
             MessagingService.instance.sendOneWay(response, message.getFrom());
 
             /* Do read repair if header of the message says so */



Mime
View raw message