avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giac...@apache.org
Subject cvs commit: avalon-logkit/src/java/org/apache/log/output/io StreamTarget.java
Date Tue, 20 Jan 2004 20:04:18 GMT
giacomo     2004/01/20 12:04:18

  Modified:    src/java/org/apache/log/output/io StreamTarget.java
  Log:
  Never close System Streams
  
  Revision  Changes    Path
  1.13      +5 -1      avalon-logkit/src/java/org/apache/log/output/io/StreamTarget.java
  
  Index: StreamTarget.java
  ===================================================================
  RCS file: /home/cvs/avalon-logkit/src/java/org/apache/log/output/io/StreamTarget.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -d -b -u -r1.12 -r1.13
  --- StreamTarget.java	5 Dec 2003 15:14:11 -0000	1.12
  +++ StreamTarget.java	20 Jan 2004 20:04:18 -0000	1.13
  @@ -190,7 +190,11 @@
           {
               if( null != outputStream )
               {
  +                // Never close System Streams
  +                if( ! ( System.out == outputStream && System.err == outputStream
) )
  +                {
                   outputStream.close();
  +                }
               }
           }
           catch( final IOException ioe )
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message