cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject [1/3] cassandra git commit: use parameterized logging
Date Sat, 06 Dec 2014 02:24:11 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk d4a8a8175 -> b7082df27


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/a9109302
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/a9109302
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/a9109302

Branch: refs/heads/trunk
Commit: a910930272a4a6443e6c5a2969d5add8b76fe752
Parents: ceed3a2
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Fri Dec 5 21:16:54 2014 -0500
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Fri Dec 5 21:16:54 2014 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/ColumnFamilyStore.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/a9109302/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/ColumnFamilyStore.java b/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
index b5c6c98..0e7e5f2 100644
--- a/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
+++ b/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
@@ -1855,14 +1855,14 @@ public class ColumnFamilyStore implements ColumnFamilyStoreMBean
                 if (sstable == null || !sstable.acquireReference())
                 {
                     if (logger.isDebugEnabled())
-                        logger.debug("using snapshot sstable " + entries.getKey());
+                        logger.debug("using snapshot sstable {}", entries.getKey());
                     sstable = SSTableReader.open(entries.getKey(), entries.getValue(), metadata,
partitioner);
                     // This is technically not necessary since it's a snapshot but makes
things easier
                     sstable.acquireReference();
                 }
                 else if (logger.isDebugEnabled())
                 {
-                    logger.debug("using active sstable " + entries.getKey());
+                    logger.debug("using active sstable {}", entries.getKey());
                 }
                 readers.add(sstable);
             }


Mime
View raw message