From 35a22f305def06047520dc0d67a73fc343e8e6e9 Mon Sep 17 00:00:00 2001 From: Jeff Tung <100387939+jtung-apple@users.noreply.github.com> Date: Fri, 9 Dec 2022 09:02:48 -0800 Subject: [PATCH] [Darwin] MTRDevice should log expiration time info for expected values --- src/darwin/Framework/CHIP/MTRDevice.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/darwin/Framework/CHIP/MTRDevice.mm b/src/darwin/Framework/CHIP/MTRDevice.mm index 38a52bba989719..8731f64a5ecdae 100644 --- a/src/darwin/Framework/CHIP/MTRDevice.mm +++ b/src/darwin/Framework/CHIP/MTRDevice.mm @@ -847,6 +847,9 @@ - (void)setExpectedValues:(NSArray *> *)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