Skip to content

Commit

Permalink
Moved batching logging for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jtung-apple committed Jun 1, 2023
1 parent bf6cff5 commit 2987aa1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/darwin/Framework/CHIP/MTRAsyncCallbackWorkQueue.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/darwin/Framework/CHIP/MTRDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
Expand Down

0 comments on commit 2987aa1

Please sign in to comment.