[logback-dev] svn commit: r1461 - logback/trunk/logback-access/src/main/java/ch/qos/logback/access/servlet

noreply.ceki at qos.ch noreply.ceki at qos.ch
Mon Mar 26 21:41:11 CEST 2007


Author: ceki
Date: Mon Mar 26 21:41:11 2007
New Revision: 1461

Modified:
   logback/trunk/logback-access/src/main/java/ch/qos/logback/access/servlet/TeeHttpServletResponse.java

Log:
For images, it seems that getWriter() is never called, getOutputStream() is called instead.

Modified: logback/trunk/logback-access/src/main/java/ch/qos/logback/access/servlet/TeeHttpServletResponse.java
==============================================================================
--- logback/trunk/logback-access/src/main/java/ch/qos/logback/access/servlet/TeeHttpServletResponse.java	(original)
+++ logback/trunk/logback-access/src/main/java/ch/qos/logback/access/servlet/TeeHttpServletResponse.java	Mon Mar 26 21:41:11 2007
@@ -39,7 +39,9 @@
   @Override
   public void flushBuffer() {
     // System.out.println("TeeHttpServletResponse.flushBuffer() called");
-    this.writer.flush();
+    if(this.writer != null) {
+      this.writer.flush();
+    }
   }
 
   byte[] getOutputBuffer() {



More information about the logback-dev mailing list