Skip to content

Commit

Permalink
Add better logging when doing Matter frameworks controller suspend/re…
Browse files Browse the repository at this point in the history
…sume. (#35520)
  • Loading branch information
bzbarsky-apple authored Sep 11, 2024
1 parent 9257ca7 commit 9a6694f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/darwin/Framework/CHIP/MTRDeviceController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ - (void)suspend
devicesToSuspend = [self.nodeIDToDeviceMap objectEnumerator].allObjects;
}

MTR_LOG("%@ found %lu devices to suspend", self, static_cast<unsigned long>(devicesToSuspend.count));
for (MTRDevice * device in devicesToSuspend) {
[device controllerSuspended];
}
Expand Down Expand Up @@ -437,6 +438,7 @@ - (void)resume
devicesToResume = [self.nodeIDToDeviceMap objectEnumerator].allObjects;
}

MTR_LOG("%@ found %lu devices to resume", self, static_cast<unsigned long>(devicesToResume.count));
for (MTRDevice * device in devicesToResume) {
[device controllerResumed];
}
Expand Down

0 comments on commit 9a6694f

Please sign in to comment.