From 9bf8d8169a0a3d1494c7adfa8015ff62a1835e2f Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Fri, 12 Oct 2018 22:19:06 -0700 Subject: [PATCH] [mesh-forwarder] add log for retry attempts of indirect tx to sleepy nodes (#3151) --- src/core/thread/mesh_forwarder_ftd.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/thread/mesh_forwarder_ftd.cpp b/src/core/thread/mesh_forwarder_ftd.cpp index 52b5c6b86..b5b3f0848 100644 --- a/src/core/thread/mesh_forwarder_ftd.cpp +++ b/src/core/thread/mesh_forwarder_ftd.cpp @@ -623,6 +623,10 @@ void MeshForwarder::HandleSentFrameToChild(const Mac::Frame &aFrame, otError aEr case OT_ERROR_CHANNEL_ACCESS_FAILURE: case OT_ERROR_ABORT: + + otLogInfoMac(GetInstance(), "Indirect tx to child %04x failed, attempt %d/%d, error:%s", child->GetRloc16(), + child->GetIndirectTxAttempts(), kMaxPollTriggeredTxAttempts, otThreadErrorToString(aError)); + if (child->GetIndirectTxAttempts() < kMaxPollTriggeredTxAttempts) { // We save the frame counter, key id, and data sequence number of