Skip to content

Commit 506c709

Browse files
authored
[Darwin] MTRDevice should log expiration time info for expected values (#24004)
1 parent 15bab31 commit 506c709

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/darwin/Framework/CHIP/MTRDevice.mm

+3
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,9 @@ - (void)setExpectedValues:(NSArray<NSDictionary<NSString *, id> *> *)values expe
855855
// since NSTimeInterval is in seconds, convert ms into seconds in double
856856
NSDate * expirationTime = [NSDate dateWithTimeIntervalSinceNow:expectedValueInterval.doubleValue / 1000];
857857

858+
MTR_LOG_INFO(
859+
"Setting expected values %@ with expiration time %f seconds from now", values, [expirationTime timeIntervalSinceNow]);
860+
858861
os_unfair_lock_lock(&self->_lock);
859862

860863
// _getAttributesToReportWithNewExpectedValues will log attribute paths reported

0 commit comments

Comments
 (0)