Don't flush each time if we use a buffered output stream. It flushes for you
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 14 Sep 2009 21:47:04 +0000 (21:47 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 14 Sep 2009 21:47:04 +0000 (21:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@814876 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/juli/FileHandler.java

index 29d055e..5ef7fd1 100644 (file)
@@ -144,7 +144,6 @@ public class FileHandler
         try {
             if (writer!=null) {
                 writer.write(result);
-                writer.flush();
             } else {
                 reportError("FileHandler is closed or not yet initialized, unable to log ["+result+"]", null, ErrorManager.WRITE_FAILURE);
             }