@@ -157,14 +157,15 @@ void ReliableMessageMgr::ExecuteActions()
157
157
158
158
if (mAnalyticsDelegate )
159
159
{
160
- #if !CHIP_PROGRESS_LOGGING
161
- auto fabricIndex = sessionHandle->GetFabricIndex ();
162
- auto destination = kUndefinedNodeId ;
160
+ #if !(CHIP_ERROR_LOGGING || CHIP_PROGRESS_LOGGING)
161
+ uint32_t messageCounter = entry->retainedBuf .GetMessageCounter ();
162
+ auto fabricIndex = sessionHandle->GetFabricIndex ();
163
+ auto destination = kUndefinedNodeId ;
163
164
if (sessionHandle->IsSecureSession ())
164
165
{
165
166
destination = sessionHandle->AsSecureSession ()->GetPeerNodeId ();
166
167
}
167
- #endif // !CHIP_PROGRESS_LOGGING
168
+ #endif // !(CHIP_ERROR_LOGGING || CHIP_PROGRESS_LOGGING)
168
169
ReliableMessageAnalyticsDelegate::TransmitEvent event = { .nodeId = destination,
169
170
.fabricIndex = fabricIndex,
170
171
.eventType =
@@ -570,8 +571,9 @@ void ReliableMessageMgr::CalculateNextRetransTime(RetransTableEntry & entry)
570
571
if (mAnalyticsDelegate )
571
572
{
572
573
#if !CHIP_PROGRESS_LOGGING
573
- auto fabricIndex = sessionHandle->GetFabricIndex ();
574
- auto destination = kUndefinedNodeId ;
574
+ uint32_t messageCounter = entry.retainedBuf .GetMessageCounter ();
575
+ auto fabricIndex = sessionHandle->GetFabricIndex ();
576
+ auto destination = kUndefinedNodeId ;
575
577
if (sessionHandle->IsSecureSession ())
576
578
{
577
579
destination = sessionHandle->AsSecureSession ()->GetPeerNodeId ();
0 commit comments