From 107696737d4830799e7bd2d305fd9b7594e7b947 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Thu, 11 May 2023 17:42:02 -0400 Subject: [PATCH] Log session id in SecureSession::MoveToState. (#26490) This is the only progress-level log in SecureSession, so without this if detail logging is disabled it's hard to make sense of what's going on with sessions. --- src/transport/SecureSession.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transport/SecureSession.cpp b/src/transport/SecureSession.cpp index 6e914e764f962e..9748fdcbb1c839 100644 --- a/src/transport/SecureSession.cpp +++ b/src/transport/SecureSession.cpp @@ -87,8 +87,8 @@ void SecureSession::MoveToState(State targetState) { if (mState != targetState) { - ChipLogProgress(SecureChannel, "SecureSession[%p]: Moving from state '%s' --> '%s'", this, StateToString(mState), - StateToString(targetState)); + ChipLogProgress(SecureChannel, "SecureSession[%p, LSID:%d]: State change '%s' --> '%s'", this, mLocalSessionId, + StateToString(mState), StateToString(targetState)); mState = targetState; } }