Issue #2567 - Switched order of StacklessLogging and request sending to prevent logging the stack trace
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
fe9bfda2c3
commit
0ebe50ae8b
|
@ -92,8 +92,8 @@ public class MisbehavingClassTest
|
||||||
|
|
||||||
Future<BlockheadConnection> connFut = request.sendAsync();
|
Future<BlockheadConnection> connFut = request.sendAsync();
|
||||||
|
|
||||||
try (BlockheadConnection clientConn = connFut.get(Timeouts.CONNECT, Timeouts.CONNECT_UNIT);
|
try (StacklessLogging ignore = new StacklessLogging(ListenerRuntimeOnConnectSocket.class, WebSocketSession.class);
|
||||||
StacklessLogging ignore = new StacklessLogging(ListenerRuntimeOnConnectSocket.class, WebSocketSession.class))
|
BlockheadConnection clientConn = connFut.get(Timeouts.CONNECT, Timeouts.CONNECT_UNIT))
|
||||||
{
|
{
|
||||||
LinkedBlockingQueue<WebSocketFrame> frames = clientConn.getFrameQueue();
|
LinkedBlockingQueue<WebSocketFrame> frames = clientConn.getFrameQueue();
|
||||||
WebSocketFrame frame = frames.poll(Timeouts.POLL_EVENT, Timeouts.POLL_EVENT_UNIT);
|
WebSocketFrame frame = frames.poll(Timeouts.POLL_EVENT, Timeouts.POLL_EVENT_UNIT);
|
||||||
|
@ -126,8 +126,8 @@ public class MisbehavingClassTest
|
||||||
|
|
||||||
Future<BlockheadConnection> connFut = request.sendAsync();
|
Future<BlockheadConnection> connFut = request.sendAsync();
|
||||||
|
|
||||||
try (BlockheadConnection clientConn = connFut.get(Timeouts.CONNECT, Timeouts.CONNECT_UNIT);
|
try (StacklessLogging scope = new StacklessLogging(AnnotatedRuntimeOnConnectSocket.class, WebSocketSession.class);
|
||||||
StacklessLogging scope = new StacklessLogging(AnnotatedRuntimeOnConnectSocket.class, WebSocketSession.class))
|
BlockheadConnection clientConn = connFut.get(Timeouts.CONNECT, Timeouts.CONNECT_UNIT))
|
||||||
{
|
{
|
||||||
LinkedBlockingQueue<WebSocketFrame> frames = clientConn.getFrameQueue();
|
LinkedBlockingQueue<WebSocketFrame> frames = clientConn.getFrameQueue();
|
||||||
WebSocketFrame frame = frames.poll(Timeouts.POLL_EVENT, Timeouts.POLL_EVENT_UNIT);
|
WebSocketFrame frame = frames.poll(Timeouts.POLL_EVENT, Timeouts.POLL_EVENT_UNIT);
|
||||||
|
|
Loading…
Reference in New Issue