From 2987aa1df734d93a1818dc997acae266a820f639 Mon Sep 17 00:00:00 2001 From: Jeff Tung <100387939+jtung-apple@users.noreply.github.com> Date: Thu, 1 Jun 2023 13:10:27 -0700 Subject: [PATCH] Moved batching logging for clarity --- src/darwin/Framework/CHIP/MTRAsyncCallbackWorkQueue.mm | 2 -- src/darwin/Framework/CHIP/MTRDevice.mm | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/darwin/Framework/CHIP/MTRAsyncCallbackWorkQueue.mm b/src/darwin/Framework/CHIP/MTRAsyncCallbackWorkQueue.mm index 73dde6728ccdaf..4a05d6586fb14f 100644 --- a/src/darwin/Framework/CHIP/MTRAsyncCallbackWorkQueue.mm +++ b/src/darwin/Framework/CHIP/MTRAsyncCallbackWorkQueue.mm @@ -181,8 +181,6 @@ - (void)_callNextReadyWorkItem BOOL fullyMerged = NO; workItem.batchingHandler(workItem.batchableData, nextWorkItem.batchableData, &fullyMerged); - MTR_LOG_DEFAULT( - "MTRAsyncCallbackWorkQueue: merged items for batching - fully merged %@", fullyMerged ? @"YES" : @"NO"); if (!fullyMerged) { // if some parts of the next item is break; diff --git a/src/darwin/Framework/CHIP/MTRDevice.mm b/src/darwin/Framework/CHIP/MTRDevice.mm index 243bc97d73f4aa..f3addbf572736e 100644 --- a/src/darwin/Framework/CHIP/MTRDevice.mm +++ b/src/darwin/Framework/CHIP/MTRDevice.mm @@ -840,6 +840,7 @@ static BOOL AttributeHasChangesOmittedQuality(MTRAttributePath * attributePath) } if (readRequestsNext.count == 0) { + MTR_LOG_DEFAULT("%@ batching - fully merged next item %@", logPrefix, fullyMerged ? @"YES" : @"NO"); *fullyMerged = YES; } };