Skip to content

Commit d024203

Browse files
Add debug logs to print custom signals during updates and fetches.
1 parent de73b8f commit d024203

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

FirebaseRemoteConfig/Sources/FIRRemoteConfig.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,9 @@ - (void)setCustomSignals:(nullable NSDictionary<NSString *, NSObject *> *)custom
337337
if (![newCustomSignals isEqualToDictionary:self->_settings.customSignals]) {
338338
self->_settings.customSignals = newCustomSignals;
339339
}
340+
// Log the final updated custom signals.
341+
FIRLogDebug(kFIRLoggerRemoteConfig, @"I-RCN000078",@"Updated custom signals: %@", newCustomSignals);
342+
340343
if (completionHandler) {
341344
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
342345
completionHandler(nil);

FirebaseRemoteConfig/Sources/RCNConfigSettings.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,9 @@ - (NSString *)nextRequestWithUserProperties:(NSDictionary *)userProperties {
458458
[[NSString alloc]
459459
initWithData:jsonData
460460
encoding:NSUTF8StringEncoding]]];
461+
// Log the custom signals during fetch.
462+
FIRLogDebug(kFIRLoggerRemoteConfig, @"I-RCN000078",@"Fetching with custom signals: %@", _customSignals);
463+
461464
}
462465
}
463466
ret = [ret stringByAppendingString:@"}"];

0 commit comments

Comments
 (0)