We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 496223a commit aa4ae7aCopy full SHA for aa4ae7a
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompHeaderAccessor.java
@@ -429,7 +429,8 @@ else if (StompCommand.DISCONNECT.equals(getCommand())) {
429
@Override
430
public String getDetailedLogMessage(@Nullable Object payload) {
431
if (isHeartbeat()) {
432
- return "heart-beat in session " + getSessionId();
+ String sessionId = getSessionId();
433
+ return "heart-beat" + (sessionId != null ? " in session " + sessionId : "");
434
}
435
StompCommand command = getCommand();
436
if (command == null) {
0 commit comments