avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject svn commit: rev 30972 - avalon/trunk/runtime/logkit/src/java/org/apache/log/output/io
Date Fri, 30 Jul 2004 08:25:27 GMT
Author: leif
Date: Fri Jul 30 01:25:24 2004
New Revision: 30972

Modified:
   avalon/trunk/runtime/logkit/src/java/org/apache/log/output/io/StreamTarget.java
Log:
Fix a typo that was causing the System.out and/or System.err streams to be closed when the
StreamTarget was closed.

Modified: avalon/trunk/runtime/logkit/src/java/org/apache/log/output/io/StreamTarget.java
==============================================================================
--- avalon/trunk/runtime/logkit/src/java/org/apache/log/output/io/StreamTarget.java	(original)
+++ avalon/trunk/runtime/logkit/src/java/org/apache/log/output/io/StreamTarget.java	Fri Jul
30 01:25:24 2004
@@ -153,7 +153,7 @@
             if( null != outputStream )
             {
                 // Never close System Streams
-                if( ! ( System.out == outputStream && System.err == outputStream
) )
+                if( ! ( System.out == outputStream || System.err == outputStream ) )
                 {
                     outputStream.close();
                 }

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


Mime
View raw message