File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
spring-messaging/src/main/java/org/springframework/messaging Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ protected void startInternal() {
442
442
}
443
443
444
444
if (logger .isInfoEnabled ()) {
445
- logger .info ("Starting \" system\" session, " + toString () );
445
+ logger .info ("Starting \" system\" session, " + this );
446
446
}
447
447
448
448
StompHeaderAccessor accessor = StompHeaderAccessor .create (StompCommand .CONNECT );
@@ -699,7 +699,7 @@ protected TcpConnection<byte[]> getTcpConnection() {
699
699
@ Override
700
700
public void afterConnected (TcpConnection <byte []> connection ) {
701
701
if (logger .isDebugEnabled ()) {
702
- logger .debug ("TCP connection opened in session=" + getSessionId ());
702
+ logger .debug ("TCP connection " + connection + " opened in session=" + getSessionId ());
703
703
}
704
704
this .tcpConnection = connection ;
705
705
connection .onReadInactivity (() -> {
@@ -978,7 +978,7 @@ public void clearConnection() {
978
978
this .tcpConnection = null ;
979
979
if (conn != null ) {
980
980
if (logger .isDebugEnabled ()) {
981
- logger .debug ("Closing TCP connection in session " + this .sessionId );
981
+ logger .debug ("Closing TCP connection " + conn + " in session " + this .sessionId );
982
982
}
983
983
conn .close ();
984
984
}
Original file line number Diff line number Diff line change @@ -81,4 +81,8 @@ public void close() {
81
81
this .completionSink .tryEmitEmpty ();
82
82
}
83
83
84
+ @ Override
85
+ public String toString () {
86
+ return "ReactorNetty2TcpConnection[inbound=" + this .inbound + "]" ;
87
+ }
84
88
}
Original file line number Diff line number Diff line change @@ -80,4 +80,9 @@ public void close() {
80
80
this .completionSink .tryEmitEmpty ();
81
81
}
82
82
83
+ @ Override
84
+ public String toString () {
85
+ return "ReactorNettyTcpConnection[inbound=" + this .inbound + "]" ;
86
+ }
87
+
83
88
}
You can’t perform that action at this time.
0 commit comments