Skip to content

Commit 1631815

Browse files
committed
Fix CI
1 parent 98240fa commit 1631815

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/messaging/ReliableMessageMgr.cpp

+8-6
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,15 @@ void ReliableMessageMgr::ExecuteActions()
157157

158158
if (mAnalyticsDelegate)
159159
{
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;
163164
if (sessionHandle->IsSecureSession())
164165
{
165166
destination = sessionHandle->AsSecureSession()->GetPeerNodeId();
166167
}
167-
#endif // !CHIP_PROGRESS_LOGGING
168+
#endif // !(CHIP_ERROR_LOGGING || CHIP_PROGRESS_LOGGING)
168169
ReliableMessageAnalyticsDelegate::TransmitEvent event = { .nodeId = destination,
169170
.fabricIndex = fabricIndex,
170171
.eventType =
@@ -570,8 +571,9 @@ void ReliableMessageMgr::CalculateNextRetransTime(RetransTableEntry & entry)
570571
if (mAnalyticsDelegate)
571572
{
572573
#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;
575577
if (sessionHandle->IsSecureSession())
576578
{
577579
destination = sessionHandle->AsSecureSession()->GetPeerNodeId();

0 commit comments

Comments
 (0)