From b143ac659c0f89a1c12dcaee41a26a38fcad6a7b Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Wed, 23 Nov 2011 11:24:32 +0100 Subject: [PATCH] Stricter logging for IDEA-77314 --- .../com/intellij/util/io/SafeFileOutputStream.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/platform/util/src/com/intellij/util/io/SafeFileOutputStream.java b/platform/util/src/com/intellij/util/io/SafeFileOutputStream.java index c804d70068b7..5790a8e29d05 100644 --- a/platform/util/src/com/intellij/util/io/SafeFileOutputStream.java +++ b/platform/util/src/com/intellij/util/io/SafeFileOutputStream.java @@ -27,6 +27,7 @@ import java.io.*; */ public class SafeFileOutputStream extends OutputStream { private static final Logger LOG = Logger.getInstance("#com.intellij.util.io.SafeFileOutputStream"); + private final File myTargetFile; private final boolean myPreserveAttributes; private final OutputStream myBackDoorStream; @@ -53,7 +54,7 @@ public class SafeFileOutputStream extends OutputStream { myBackDoorStream.write(b); } catch (IOException e) { - LOG.info(e); + LOG.warn(e); failed = true; throw e; } @@ -64,7 +65,7 @@ public class SafeFileOutputStream extends OutputStream { myBackDoorStream.write(b); } catch (IOException e) { - LOG.info(e); + LOG.warn(e); failed = true; throw e; } @@ -76,7 +77,7 @@ public class SafeFileOutputStream extends OutputStream { myBackDoorStream.write(b, off, len); } catch (IOException e) { - LOG.info(e); + LOG.warn(e); failed = true; throw e; } @@ -88,7 +89,7 @@ public class SafeFileOutputStream extends OutputStream { myBackDoorStream.flush(); } catch (IOException e) { - LOG.info(e); + LOG.warn(e); failed = true; throw e; } @@ -100,7 +101,7 @@ public class SafeFileOutputStream extends OutputStream { myBackDoorStream.close(); } catch (IOException e) { - LOG.info(e); + LOG.warn(e); FileUtil.delete(backdoorFile()); throw e; }