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 (#35654)
  • Loading branch information
vivien-apple authored and pull[bot] committed Nov 11, 2024
1 parent 7346747 commit 6003817
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 6003817

Please sign in to comment.