From e1c67d387410cc3e3e4c88d15a96baf4386d1b76 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Wed, 10 May 2023 16:42:39 -0400 Subject: [PATCH] Log session id in SecureSession::MoveToState. 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; } }