@@ -157,6 +157,14 @@ 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 ;
163
+ if (sessionHandle->IsSecureSession ())
164
+ {
165
+ destination = sessionHandle->AsSecureSession ()->GetPeerNodeId ();
166
+ }
167
+ #endif // !CHIP_PROGRESS_LOGGING
160
168
ReliableMessageAnalyticsDelegate::TransmitEvent event = { .nodeId = destination,
161
169
.fabricIndex = fabricIndex,
162
170
.eventType =
@@ -546,11 +554,29 @@ void ReliableMessageMgr::CalculateNextRetransTime(RetransTableEntry & entry)
546
554
peerIsActive = sessionHandle->AsUnauthenticatedSession ()->IsPeerActive ();
547
555
}
548
556
557
+ ChipLogProgress (ExchangeManager,
558
+ " ??%d [E:" ChipLogFormatExchange " S:%u M:" ChipLogFormatMessageCounter
559
+ " ] (%s) Msg Retransmission to %u:" ChipLogFormatX64 " scheduled for %" PRIu32
560
+ " ms from now [State:%s II:%" PRIu32 " AI:%" PRIu32 " AT:%u]" ,
561
+ entry.sendCount + 1 , ChipLogValueExchange (&entry.ec .Get ()), sessionHandle->SessionIdForLogging (),
562
+ messageCounter, Transport::GetSessionTypeString (sessionHandle), fabricIndex, ChipLogValueX64 (destination),
563
+ backoff.count (), peerIsActive ? " Active" : " Idle" , config.mIdleRetransTimeout .count (),
564
+ config.mActiveRetransTimeout .count (), config.mActiveThresholdTime .count ());
565
+ #endif // CHIP_PROGRESS_LOGGING
566
+
549
567
// For initial send the packet has already been submitted to transport layer successfully.
550
568
// On re-transmits we do not know if transport layer is unable to retransmit for some
551
569
// reason, so saying we have sent re-transmit here is a little presumptuous.
552
570
if (mAnalyticsDelegate )
553
571
{
572
+ #if !CHIP_PROGRESS_LOGGING
573
+ auto fabricIndex = sessionHandle->GetFabricIndex ();
574
+ auto destination = kUndefinedNodeId ;
575
+ if (sessionHandle->IsSecureSession ())
576
+ {
577
+ destination = sessionHandle->AsSecureSession ()->GetPeerNodeId ();
578
+ }
579
+ #endif // !CHIP_PROGRESS_LOGGING
554
580
ReliableMessageAnalyticsDelegate::TransmitEvent event = {
555
581
.nodeId = destination,
556
582
.fabricIndex = fabricIndex,
@@ -562,15 +588,6 @@ void ReliableMessageMgr::CalculateNextRetransTime(RetransTableEntry & entry)
562
588
mAnalyticsDelegate ->OnTransmitEvent (event);
563
589
}
564
590
565
- ChipLogProgress (ExchangeManager,
566
- " ??%d [E:" ChipLogFormatExchange " S:%u M:" ChipLogFormatMessageCounter
567
- " ] (%s) Msg Retransmission to %u:" ChipLogFormatX64 " scheduled for %" PRIu32
568
- " ms from now [State:%s II:%" PRIu32 " AI:%" PRIu32 " AT:%u]" ,
569
- entry.sendCount + 1 , ChipLogValueExchange (&entry.ec .Get ()), sessionHandle->SessionIdForLogging (),
570
- messageCounter, Transport::GetSessionTypeString (sessionHandle), fabricIndex, ChipLogValueX64 (destination),
571
- backoff.count (), peerIsActive ? " Active" : " Idle" , config.mIdleRetransTimeout .count (),
572
- config.mActiveRetransTimeout .count (), config.mActiveThresholdTime .count ());
573
- #endif // CHIP_PROGRESS_LOGGING
574
591
}
575
592
576
593
#if CHIP_CONFIG_TEST
0 commit comments