Skip to content

Commit 1006b74

Browse files
Log the node ID of the peer when we log that CASE timed out.
1 parent 3099269 commit 1006b74

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/protocols/secure_channel/CASESession.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,9 @@ void CASESession::OnResponseTimeout(ExchangeContext * ec)
551551
VerifyOrReturn(ec != nullptr, ChipLogError(SecureChannel, "CASESession::OnResponseTimeout was called by null exchange"));
552552
VerifyOrReturn(mExchangeCtxt.HasValue() && (&mExchangeCtxt.Value().Get() == ec),
553553
ChipLogError(SecureChannel, "CASESession::OnResponseTimeout exchange doesn't match"));
554-
ChipLogError(SecureChannel, "CASESession timed out while waiting for a response from the peer. Current state was %u",
555-
to_underlying(mState));
554+
ChipLogError(SecureChannel,
555+
"CASESession timed out while waiting for a response from peer " ChipLogFormatScopedNodeId ". Current state was %u",
556+
ChipLogValueScopedNodeId(ScopedNodeId(mPeerNodeId, mFabricIndex)), to_underlying(mState));
556557
MATTER_TRACE_COUNTER("CASETimeout");
557558
// Discard the exchange so that Clear() doesn't try aborting it. The
558559
// exchange will handle that.

0 commit comments

Comments
 (0)