diff --git a/activemq-core/src/test/java/org/apache/activemq/transport/tcp/InactivityMonitorTest.java b/activemq-core/src/test/java/org/apache/activemq/transport/tcp/InactivityMonitorTest.java index dd5f46618d..76da11eed8 100644 --- a/activemq-core/src/test/java/org/apache/activemq/transport/tcp/InactivityMonitorTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/transport/tcp/InactivityMonitorTest.java @@ -133,8 +133,7 @@ public class InactivityMonitorTest extends CombinationTestSupport implements Tra public void onException(IOException error) { if (!ignoreClientError.get()) { - LOG.info("Server transport error:"); - error.printStackTrace(); + LOG.info("Server transport error:", error); serverErrorCount.incrementAndGet(); } } @@ -152,7 +151,7 @@ public class InactivityMonitorTest extends CombinationTestSupport implements Tra } public void onAcceptError(Exception error) { - error.printStackTrace(); + LOG.trace(error); } public void testClientHang() throws Exception { diff --git a/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java b/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java index ecc2d87c00..b1e684ad62 100644 --- a/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java @@ -61,7 +61,6 @@ public class TransportUriTest extends EmbeddedBrokerTestSupport { connection.start(); fail("Should have thrown an exception!"); } catch (Exception expected) { - expected.printStackTrace(); } }