Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-12-27 17:20:03 +0000
committerKevin Sawicki2011-12-27 17:20:03 +0000
commit2de1d9fb64fe7202735ffbc3774b5e2d56874307 (patch)
tree1f7dfbce80b44dd28cd08195ca5d6f27d34c40f3 /org.eclipse.jgit
parent067ccbfda7b1dd804341addff398b1d8720edc63 (diff)
downloadjgit-2de1d9fb64fe7202735ffbc3774b5e2d56874307.tar.gz
jgit-2de1d9fb64fe7202735ffbc3774b5e2d56874307.tar.xz
jgit-2de1d9fb64fe7202735ffbc3774b5e2d56874307.zip
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