Skip to content

Commit

Permalink
Log the peer when we send a Sigma1 message. (project-chip#34268)
Browse files Browse the repository at this point in the history
This makes it simpler to figure out who CASE establishments are happening with.
  • Loading branch information
bzbarsky-apple authored and j-ororke committed Jul 18, 2024
1 parent 0c09f28 commit 0b6a75a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/protocols/secure_channel/CASESession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ void CASESession::OnResponseTimeout(ExchangeContext * ec)
ChipLogError(SecureChannel, "CASESession::OnResponseTimeout exchange doesn't match"));
ChipLogError(SecureChannel,
"CASESession timed out while waiting for a response from peer " ChipLogFormatScopedNodeId ". Current state was %u",
ChipLogValueScopedNodeId(ScopedNodeId(mPeerNodeId, mFabricIndex)), to_underlying(mState));
ChipLogValueScopedNodeId(GetPeer()), to_underlying(mState));
MATTER_TRACE_COUNTER("CASETimeout");
// Discard the exchange so that Clear() doesn't try aborting it. The
// exchange will handle that.
Expand Down Expand Up @@ -872,7 +872,7 @@ CHIP_ERROR CASESession::SendSigma1()
mState = State::kSentSigma1;
}

ChipLogProgress(SecureChannel, "Sent Sigma1 msg");
ChipLogProgress(SecureChannel, "Sent Sigma1 msg to " ChipLogFormatScopedNodeId, ChipLogValueScopedNodeId(GetPeer()));

mDelegate->OnSessionEstablishmentStarted();

Expand Down

0 comments on commit 0b6a75a

Please sign in to comment.