Skip to content

Commit 1428332

Browse files
authored
[Logging] Use the ephemeral initiator node id in the logging message when the responder transmit a message (#35654)
1 parent 884d9fa commit 1428332

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/transport/SessionManager.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,10 @@ CHIP_ERROR SessionManager::PrepareMessage(const SessionHandle & sessionHandle, P
332332
#if CHIP_PROGRESS_LOGGING
333333
destination = kUndefinedNodeId;
334334
fabricIndex = kUndefinedFabricIndex;
335+
if (session->GetSessionRole() == Transport::UnauthenticatedSession::SessionRole::kResponder)
336+
{
337+
destination = session->GetEphemeralInitiatorNodeID();
338+
}
335339
#endif // CHIP_PROGRESS_LOGGING
336340
}
337341
break;

0 commit comments

Comments
 (0)