Commits

Marcin Gardias committed aa79250

closehandler should log exceptions on close().

  • Participants
  • Parent commits 0bd121d

Comments (0)

Files changed (1)

src/main/java/com/atlassian/utils/process/ClosingInputHandler.java

 
 import org.apache.log4j.Logger;
 
+import java.io.IOException;
 import java.io.OutputStream;
 
 /**
 
     public void process(final OutputStream input)
     {
-        IOUtils.closeQuietly(input);
+        try
+        {
+            input.close();
+        }
+        catch (IOException e)
+        {
+            log.error("Exception caught while closing the stream", e);
+        }
     }
 
     public void setWatchdog(final Watchdog watchdog)