From edd134c4b8f135ca36059385df7ef4fe8a2004ce Mon Sep 17 00:00:00 2001 From: C Freeman Date: Tue, 6 Jul 2021 12:46:18 -0400 Subject: [PATCH] Fix python compile. (#8135) Looks like ChipLogDetail is off for the controller so it throws an unused variable exception. Just moving the var into the log. --- src/transport/SecureSessionMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transport/SecureSessionMgr.cpp b/src/transport/SecureSessionMgr.cpp index 1d5b569794812e..6fdb0db42a9311 100644 --- a/src/transport/SecureSessionMgr.cpp +++ b/src/transport/SecureSessionMgr.cpp @@ -500,8 +500,8 @@ void SecureSessionMgr::SecureMessageDispatch(const PacketHeader & packetHeader, void SecureSessionMgr::HandleConnectionExpired(const Transport::PeerConnectionState & state) { - NodeId peerNodeId = state.GetPeerNodeId(); - ChipLogDetail(Inet, "Marking old secure session for device 0x" ChipLogFormatX64 " as expired", ChipLogValueX64(peerNodeId)); + ChipLogDetail(Inet, "Marking old secure session for device 0x" ChipLogFormatX64 " as expired", + ChipLogValueX64(state.GetPeerNodeId())); if (mCB != nullptr) {