Skip to content

Commit 0b6a75a

Browse files
bzbarsky-applej-ororke
authored andcommitted
Log the peer when we send a Sigma1 message. (project-chip#34268)
This makes it simpler to figure out who CASE establishments are happening with.
1 parent 0c09f28 commit 0b6a75a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/protocols/secure_channel/CASESession.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ void CASESession::OnResponseTimeout(ExchangeContext * ec)
599599
ChipLogError(SecureChannel, "CASESession::OnResponseTimeout exchange doesn't match"));
600600
ChipLogError(SecureChannel,
601601
"CASESession timed out while waiting for a response from peer " ChipLogFormatScopedNodeId ". Current state was %u",
602-
ChipLogValueScopedNodeId(ScopedNodeId(mPeerNodeId, mFabricIndex)), to_underlying(mState));
602+
ChipLogValueScopedNodeId(GetPeer()), to_underlying(mState));
603603
MATTER_TRACE_COUNTER("CASETimeout");
604604
// Discard the exchange so that Clear() doesn't try aborting it. The
605605
// exchange will handle that.
@@ -872,7 +872,7 @@ CHIP_ERROR CASESession::SendSigma1()
872872
mState = State::kSentSigma1;
873873
}
874874

875-
ChipLogProgress(SecureChannel, "Sent Sigma1 msg");
875+
ChipLogProgress(SecureChannel, "Sent Sigma1 msg to " ChipLogFormatScopedNodeId, ChipLogValueScopedNodeId(GetPeer()));
876876

877877
mDelegate->OnSessionEstablishmentStarted();
878878

0 commit comments

Comments
 (0)