svn commit: rev 30972 - avalon/trunk/runtime/logkit/src/java/org/apache/log/output/io

[email protected]
Newsgroups gmane.comp.jakarta.avalon.cvs
Message-ID <[email protected]>
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();
                 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.