Skip to content

Commit cfcb1eb

Browse files
FirePerf: use FPRLogDebug instead of FPRLogError for logging events when FirePerf is disabled (#8620)
* make Dropping Event log use the highest verbosity which is debug * changelog
1 parent 88280cf commit cfcb1eb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

FirebasePerformance/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Pending
22
* Create a random number of delay for remote config fetch during app starts.
3+
* Fix log spamming when Firebase Performance is disabled. (#8423)
34

45
# Version 8.6.1
56
* Fix the case where the event were dropped for missing a critical field in the event.

FirebasePerformance/Sources/FPRClient.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ - (void)logGaugeMetric:(nonnull NSArray *)gaugeData forSessionId:(nonnull NSStri
252252
- (void)processAndLogEvent:(firebase_perf_v1_PerfMetric)event {
253253
BOOL tracingEnabled = self.configuration.isDataCollectionEnabled;
254254
if (!tracingEnabled) {
255-
FPRLogError(kFPRClientPerfNotConfigured, @"Dropping event since data collection is disabled.");
255+
FPRLogDebug(kFPRClientPerfNotConfigured, @"Dropping event since data collection is disabled.");
256256
return;
257257
}
258258

0 commit comments

Comments
 (0)