Skip to content

Commit df8c9da

Browse files
woody-applerestyled-commits
andauthoredJul 17, 2024
Moving these error logs to logs (#33957)
* Removing these errors * Restyled by clang-format --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 6cde0eb commit df8c9da

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎src/darwin/Framework/CHIP/MTRDevice.mm

+3-1
Original file line numberDiff line numberDiff line change
@@ -3667,7 +3667,9 @@ - (NSArray *)_getAttributesToReportWithReportedValues:(NSArray<NSDictionary<NSSt
36673667
}
36683668
}
36693669

3670-
MTR_LOG("%@ report from reported values %@", self, attributePathsToReport);
3670+
if (attributePathsToReport.count > 0) {
3671+
MTR_LOG("%@ report from reported values %@", self, attributePathsToReport);
3672+
}
36713673

36723674
return attributesToReport;
36733675
}

‎src/darwin/Framework/CHIP/MTRDeviceStorageBehaviorConfiguration.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ - (void)checkValuesAndResetToDefaultIfNecessary
7575

7676
// Sanity check all the values, and if any is out of range, reset to default values
7777
if ((_reportToPersistenceDelayTime <= 0) || (_reportToPersistenceDelayTimeMax <= 0) || (_reportToPersistenceDelayTimeMax < _reportToPersistenceDelayTime) || (_recentReportTimesMaxCount < 2) || (_timeBetweenReportsTooShortThreshold <= 0) || (_timeBetweenReportsTooShortMinThreshold <= 0) || (_timeBetweenReportsTooShortMinThreshold > _timeBetweenReportsTooShortThreshold) || (_reportToPersistenceDelayMaxMultiplier <= 1) || (_deviceReportingExcessivelyIntervalThreshold <= 0)) {
78-
MTR_LOG_ERROR("%@ storage behavior: MTRDeviceStorageBehaviorConfiguration values out of bounds - resetting to default", self);
78+
MTR_LOG("%@ storage behavior: MTRDeviceStorageBehaviorConfiguration values out of bounds - resetting to default", self);
7979

8080
_reportToPersistenceDelayTime = kReportToPersistenceDelayTimeDefault;
8181
_reportToPersistenceDelayTimeMax = kReportToPersistenceDelayTimeMaxDefault;

0 commit comments

Comments
 (0)