cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject git commit: use parameterized logging
Date Sat, 06 Sep 2014 18:33:18 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 0d1173117 -> ad3056199


use parameterized logging


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/ad305619
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/ad305619
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/ad305619

Branch: refs/heads/trunk
Commit: ad3056199c46d22edd67ddce2f61fb2e2ff9eed9
Parents: 0d11731
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Sat Sep 6 14:32:46 2014 -0400
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Sat Sep 6 14:32:46 2014 -0400

----------------------------------------------------------------------
 .../org/apache/cassandra/streaming/DefaultConnectionFactory.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/ad305619/src/java/org/apache/cassandra/streaming/DefaultConnectionFactory.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/streaming/DefaultConnectionFactory.java b/src/java/org/apache/cassandra/streaming/DefaultConnectionFactory.java
index f711490..5c27ff3 100644
--- a/src/java/org/apache/cassandra/streaming/DefaultConnectionFactory.java
+++ b/src/java/org/apache/cassandra/streaming/DefaultConnectionFactory.java
@@ -60,7 +60,7 @@ public class DefaultConnectionFactory implements StreamConnectionFactory
                     throw e;
 
                 long waitms = DatabaseDescriptor.getRpcTimeout() * (long)Math.pow(2, attempts);
-                logger.warn("Failed attempt " + attempts + " to connect to " + peer + ".
Retrying in " + waitms + " ms. (" + e + ")");
+                logger.warn("Failed attempt {} to connect to {}. Retrying in {} ms. ({})",
attempts, peer, waitms, e);
                 try
                 {
                     Thread.sleep(waitms);


Mime
View raw message