More WebSocket logging updates
Update WebSocketSession toString methods to include the handshake URI and add id and URI fields to ensure they're available after close(). Log WebSocket session open and close events at INFO. Remove trace messages for destinations that do not match. Issue: SPR-11884
This commit is contained in:
@@ -101,7 +101,6 @@ public class JettyWebSocketSessionTests {
|
||||
reset(nativeSession);
|
||||
|
||||
assertNull(session.getPrincipal());
|
||||
verify(nativeSession).isOpen();
|
||||
verifyNoMoreInteractions(nativeSession);
|
||||
}
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ public class StandardWebSocketHandlerAdapterTests {
|
||||
|
||||
@Test
|
||||
public void onOpen() throws Throwable {
|
||||
when(this.session.getId()).thenReturn("123");
|
||||
this.adapter.onOpen(this.session, null);
|
||||
|
||||
verify(this.webSocketHandler).afterConnectionEstablished(this.webSocketSession);
|
||||
|
||||
@@ -86,7 +86,6 @@ public class StandardWebSocketSessionTests {
|
||||
reset(nativeSession);
|
||||
|
||||
assertNull(session.getPrincipal());
|
||||
verify(nativeSession).isOpen();
|
||||
verifyNoMoreInteractions(nativeSession);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user