File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2016 the original author or authors.
2
+ * Copyright 2002-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -416,7 +416,8 @@ else if (StompCommand.DISCONNECT.equals(getCommand())) {
416
416
@ Override
417
417
public String getDetailedLogMessage (Object payload ) {
418
418
if (isHeartbeat ()) {
419
- return "heart-beat in session " + getSessionId ();
419
+ String sessionId = getSessionId ();
420
+ return "heart-beat" + (sessionId != null ? " in session " + sessionId : "" );
420
421
}
421
422
StompCommand command = getCommand ();
422
423
if (command == null ) {
You can’t perform that action at this time.
0 commit comments