Skip to content

Commit

Permalink
Log session id in SecureSession::MoveToState. (#26490)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed May 6, 2024
1 parent e34096f commit 2396144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transport/SecureSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 2396144

Please sign in to comment.