Skip to content

Commit

Permalink
[Darwin] MTRDevice should log expiration time info for expected values (
Browse files Browse the repository at this point in the history
  • Loading branch information
jtung-apple authored and pull[bot] committed Mar 31, 2023
1 parent fb274cd commit 22e7034
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/darwin/Framework/CHIP/MTRDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,9 @@ - (void)setExpectedValues:(NSArray<NSDictionary<NSString *, id> *> *)values expe
// since NSTimeInterval is in seconds, convert ms into seconds in double
NSDate * expirationTime = [NSDate dateWithTimeIntervalSinceNow:expectedValueInterval.doubleValue / 1000];

MTR_LOG_INFO(
"Setting expected values %@ with expiration time %f seconds from now", values, [expirationTime timeIntervalSinceNow]);

os_unfair_lock_lock(&self->_lock);

// _getAttributesToReportWithNewExpectedValues will log attribute paths reported
Expand Down

0 comments on commit 22e7034

Please sign in to comment.