Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Pearce2011-12-27 21:24:36 +0000
committerCode Review2011-12-27 21:24:36 +0000
commit80c521040940fe4f81d38f2dd4b53d3370fb5413 (patch)
treeb505d26634aaf3a579dcf99df3a6a10eedc79578 /org.eclipse.jgit
parent8f8e43b7414b31b1c66c71d8b22d23307fab899f (diff)
parent2de1d9fb64fe7202735ffbc3774b5e2d56874307 (diff)
downloadjgit-80c521040940fe4f81d38f2dd4b53d3370fb5413.tar.gz
jgit-80c521040940fe4f81d38f2dd4b53d3370fb5413.tar.xz
jgit-80c521040940fe4f81d38f2dd4b53d3370fb5413.zip
Merge "Only print stack trace to Sytem.err when debug flag is set"
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java
index ac8d655015..0dfa51187c 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java
@@ -304,14 +304,16 @@ public abstract class FS {
}
} catch (IOException e) {
// Just print on stderr for debugging
- e.printStackTrace(System.err);
+ if (debug)
+ e.printStackTrace(System.err);
gooblerFail.set(true);
}
try {
is.close();
} catch (IOException e) {
// Just print on stderr for debugging
- e.printStackTrace(System.err);
+ if (debug)
+ e.printStackTrace(System.err);
gooblerFail.set(true);
}
}

Back to the top