Skip to content

Commit

Permalink
Log session id in SecureSession::MoveToState.
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 committed May 11, 2023
1 parent bf14d4a commit e1c67d3
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 e1c67d3

Please sign in to comment.