mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Heart-beat log message potentially without session id
Issue: SPR-15937
This commit is contained in:
+2
-1
@@ -429,7 +429,8 @@ public class StompHeaderAccessor extends SimpMessageHeaderAccessor {
|
||||
@Override
|
||||
public String getDetailedLogMessage(@Nullable Object payload) {
|
||||
if (isHeartbeat()) {
|
||||
return "heart-beat in session " + getSessionId();
|
||||
String sessionId = getSessionId();
|
||||
return "heart-beat" + (sessionId != null ? " in session " + sessionId : "");
|
||||
}
|
||||
StompCommand command = getCommand();
|
||||
if (command == null) {
|
||||
|
||||
Reference in New Issue
Block a user