Skip to content

Commit

Permalink
[Logging] Use the ephemeral initiator node id in the logging message …
Browse files Browse the repository at this point in the history
…when the responder transmit a message (project-chip#35654)
  • Loading branch information
vivien-apple authored and yyzhong-g committed Dec 11, 2024
1 parent 7b42fe8 commit 2efde36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/transport/SessionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ CHIP_ERROR SessionManager::PrepareMessage(const SessionHandle & sessionHandle, P
#if CHIP_PROGRESS_LOGGING
destination = kUndefinedNodeId;
fabricIndex = kUndefinedFabricIndex;
if (session->GetSessionRole() == Transport::UnauthenticatedSession::SessionRole::kResponder)
{
destination = session->GetEphemeralInitiatorNodeID();
}
#endif // CHIP_PROGRESS_LOGGING
}
break;
Expand Down

0 comments on commit 2efde36

Please sign in to comment.