From 2de1d9fb64fe7202735ffbc3774b5e2d56874307 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 27 Dec 2011 09:20:03 -0800 Subject: [PATCH] Only print stack trace to Sytem.err when debug flag is set Bug: 362100 Change-Id: Id18de9660f0dc2fb6c30db9770f31f26c874022d --- org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java | 6 ++++-- 1 file 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 ac8d65501..0dfa51187 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); } }