From 5e558f82d54cbcc5e84d27affa5f0485a9303140 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Wed, 3 May 2006 11:21:19 +0000 Subject: [PATCH] removed some system.out logging git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@399259 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/LargeStreamletTest.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/LargeStreamletTest.java b/activemq-core/src/test/java/org/apache/activemq/LargeStreamletTest.java index 76925da88a..bac7182add 100644 --- a/activemq-core/src/test/java/org/apache/activemq/LargeStreamletTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/LargeStreamletTest.java @@ -16,6 +16,9 @@ package org.apache.activemq; * limitations under the License. */ +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + import java.io.InputStream; import java.io.OutputStream; import java.util.Random; @@ -33,6 +36,8 @@ import edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicInteger; */ public final class LargeStreamletTest extends TestCase { + private static final Log log = LogFactory.getLog(LargeStreamletTest.class); + private static final String BROKER_URL = "vm://localhost?broker.persistent=false"; private static final int BUFFER_SIZE = 1 * 1024; @@ -82,8 +87,7 @@ public final class LargeStreamletTest extends TestCase { readerException = e; e.printStackTrace(); } finally { - System.err - .println(totalRead + " total bytes read."); + log.info(totalRead + " total bytes read."); } } }); @@ -111,7 +115,7 @@ public final class LargeStreamletTest extends TestCase { writerException = e; e.printStackTrace(); } finally { - System.err.println(totalWritten + log.info(totalWritten + " total bytes written."); } }