File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
rsocket-transport-netty/src/main/java/io/rsocket/transport/netty Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 2525import io .rsocket .internal .BaseDuplexConnection ;
2626import java .net .SocketAddress ;
2727import java .util .Objects ;
28+ import java .util .logging .Level ;
2829import org .slf4j .Logger ;
2930import org .slf4j .LoggerFactory ;
3031import reactor .core .publisher .BaseSubscriber ;
@@ -50,7 +51,17 @@ public TcpDuplexConnection(Connection connection) {
5051
5152 connection .channel ().closeFuture ().addListener (future -> sender .dispose ());
5253
53- connection .outbound ().send (sender .log ("queue " + this )).then ().subscribe ();
54+ connection
55+ .outbound ()
56+ .send (
57+ sender .log (
58+ "queue " + this ,
59+ Level .INFO ,
60+ SignalType .CANCEL ,
61+ SignalType .ON_ERROR ,
62+ SignalType .ON_COMPLETE ))
63+ .then ()
64+ .subscribe ();
5465 }
5566
5667 @ Override
Original file line number Diff line number Diff line change 2424import io .rsocket .internal .BaseDuplexConnection ;
2525import java .net .SocketAddress ;
2626import java .util .Objects ;
27+ import java .util .logging .Level ;
2728import org .slf4j .Logger ;
2829import org .slf4j .LoggerFactory ;
2930import reactor .core .publisher .BaseSubscriber ;
@@ -56,7 +57,15 @@ public WebsocketDuplexConnection(Connection connection) {
5657
5758 connection
5859 .outbound ()
59- .sendObject (sender .map (BinaryWebSocketFrame ::new ).log ("queue " + this ))
60+ .sendObject (
61+ sender
62+ .map (BinaryWebSocketFrame ::new )
63+ .log (
64+ "queue " + this ,
65+ Level .INFO ,
66+ SignalType .CANCEL ,
67+ SignalType .ON_ERROR ,
68+ SignalType .ON_COMPLETE ))
6069 .then ()
6170 .subscribe ();
6271 }
You can’t perform that action at this time.
0 commit comments