cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [1/2] git commit: allow --debug to print RTE
Date Thu, 08 Nov 2012 19:18:25 GMT
Updated Branches:
  refs/heads/trunk 08e289177 -> e6ee1faff


allow --debug to print RTE


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

Branch: refs/heads/trunk
Commit: e6ee1faff6417084dd24466dc4226d0679b3a6f0
Parents: 566e206
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Thu Nov 8 12:18:20 2012 -0600
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Thu Nov 8 12:42:51 2012 -0600

----------------------------------------------------------------------
 src/java/org/apache/cassandra/cli/CliMain.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/e6ee1faf/src/java/org/apache/cassandra/cli/CliMain.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cli/CliMain.java b/src/java/org/apache/cassandra/cli/CliMain.java
index dd3ef63..a347747 100644
--- a/src/java/org/apache/cassandra/cli/CliMain.java
+++ b/src/java/org/apache/cassandra/cli/CliMain.java
@@ -218,7 +218,7 @@ public class CliMain
 
             sessionState.err.println(errorTemplate + message);
 
-            if (!(e instanceof RuntimeException))
+            if (sessionState.debug || !(e instanceof RuntimeException))
                 e.printStackTrace(sessionState.err);
 
             if (sessionState.batch || sessionState.inFileMode())


Mime
View raw message