sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject [1/2] git commit: SQOOP-729 Display Stack Trace only in Verbose mode (Jarek Jarcec Cecho)
Date Fri, 30 Nov 2012 01:01:49 GMT
Updated Branches:
  refs/heads/sqoop2 6de60c28d -> dea79f7cc


SQOOP-729 Display Stack Trace only in Verbose mode
(Jarek Jarcec Cecho)


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

Branch: refs/heads/sqoop2
Commit: dea79f7cc772303b9eed85ee0fd77522a71f00c3
Parents: caaecf1
Author: Bilung Lee <blee@apache.org>
Authored: Thu Nov 29 16:43:08 2012 -0800
Committer: Bilung Lee <blee@apache.org>
Committed: Thu Nov 29 16:43:08 2012 -0800

----------------------------------------------------------------------
 .../sqoop/client/utils/SubmissionDisplayer.java    |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/dea79f7c/client/src/main/java/org/apache/sqoop/client/utils/SubmissionDisplayer.java
----------------------------------------------------------------------
diff --git a/client/src/main/java/org/apache/sqoop/client/utils/SubmissionDisplayer.java b/client/src/main/java/org/apache/sqoop/client/utils/SubmissionDisplayer.java
index 8e0dda8..e10073b 100644
--- a/client/src/main/java/org/apache/sqoop/client/utils/SubmissionDisplayer.java
+++ b/client/src/main/java/org/apache/sqoop/client/utils/SubmissionDisplayer.java
@@ -17,6 +17,7 @@
  */
 package org.apache.sqoop.client.utils;
 
+import org.apache.sqoop.client.core.Environment;
 import org.apache.sqoop.model.MSubmission;
 import org.apache.sqoop.submission.SubmissionStatus;
 import org.apache.sqoop.submission.counter.Counter;
@@ -90,7 +91,7 @@ public final class SubmissionDisplayer {
       io.out.print("@|red Exception: |@");
       io.out.println(submission.getExceptionInfo());
 
-      if(submission.getExceptionStackTrace() != null) {
+      if(Environment.isVerboose() && submission.getExceptionStackTrace() != null)
{
         io.out.print("@|bold Stack trace: |@");
         io.out.println(submission.getExceptionStackTrace());
       }


Mime
View raw message