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 Jun 1, 2023
1 parent ec5c7bb commit f0cc6c3
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 f0cc6c3

Please sign in to comment.