You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ma...@apache.org on 2016/08/17 13:41:42 UTC

[2/4] cassandra git commit: Debug logging for unit tests

Debug logging for unit tests

Patch by marcuse; reviewed by Michael Shuler for CASSANDRA-12425


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

Branch: refs/heads/trunk
Commit: 5694a2ac3f227bdd22f1532059b566820deaf23e
Parents: 8b5b185
Author: Marcus Eriksson <ma...@apache.org>
Authored: Wed Aug 10 08:34:28 2016 +0200
Committer: Marcus Eriksson <ma...@apache.org>
Committed: Wed Aug 17 15:08:08 2016 +0200

----------------------------------------------------------------------
 test/conf/logback-test.xml                         |  2 +-
 test/unit/org/apache/cassandra/cql3/CQLTester.java | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/5694a2ac/test/conf/logback-test.xml
----------------------------------------------------------------------
diff --git a/test/conf/logback-test.xml b/test/conf/logback-test.xml
index abedc32..21c7142 100644
--- a/test/conf/logback-test.xml
+++ b/test/conf/logback-test.xml
@@ -68,7 +68,7 @@
       <appender-ref ref="TEE"/>
   </appender>
 
-  <root level="INFO">
+  <root level="DEBUG">
     <appender-ref ref="ASYNC" />
   </root>
 </configuration>

http://git-wip-us.apache.org/repos/asf/cassandra/blob/5694a2ac/test/unit/org/apache/cassandra/cql3/CQLTester.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/cql3/CQLTester.java b/test/unit/org/apache/cassandra/cql3/CQLTester.java
index c9c4631..7f5eb02 100644
--- a/test/unit/org/apache/cassandra/cql3/CQLTester.java
+++ b/test/unit/org/apache/cassandra/cql3/CQLTester.java
@@ -707,8 +707,8 @@ public abstract class CQLTester
         UntypedResultSet rs;
         if (usePrepared)
         {
-            if (logger.isDebugEnabled())
-                logger.debug("Executing: {} with values {}", query, formatAllValues(values));
+            if (logger.isTraceEnabled())
+                logger.trace("Executing: {} with values {}", query, formatAllValues(values));
             if (reusePrepared)
             {
                 rs = QueryProcessor.executeInternal(query, transformValues(values));
@@ -728,14 +728,14 @@ public abstract class CQLTester
         else
         {
             query = replaceValues(query, values);
-            if (logger.isDebugEnabled())
-                logger.debug("Executing: {}", query);
+            if (logger.isTraceEnabled())
+                logger.trace("Executing: {}", query);
             rs = QueryProcessor.executeOnceInternal(query);
         }
         if (rs != null)
         {
-            if (logger.isDebugEnabled())
-                logger.debug("Got {} rows", rs.size());
+            if (logger.isTraceEnabled())
+                logger.trace("Got {} rows", rs.size());
         }
         return rs;
     }