mirror of
https://github.com/google/app-check
synced 2026-11-11 22:15:53 +05:45
Replace GACAppCheckLogger macros with NSLog wrappers (#11269)
Added logging macros as drop-in replacements for the GAC/FIRAppCheckLogger macros. These are simple wrappers around NSLog and are not compiled out based on the desired logging level.
This commit is contained in:
1 parent
08912cdd43
commit
e5e15dbd5b
8 files changed
+59
-30
No files matched your search
@@ -53,7 +53,7 @@ static NSString *const kDebugTokenUserDefaultsKey = @"FIRAAppCheckDebugToken";
|
||||
NSArray<NSString *> *missingOptionsFields =
|
||||
[GACAppCheckValidator tokenExchangeMissingFieldsInOptions:app.options];
|
||||
if (missingOptionsFields.count > 0) {
|
||||
FIRLogError(kFIRLoggerAppCheck, kFIRLoggerAppCheckMessageDebugProviderIncompleteFIROptions,
|
||||
FIRLogError(kFIRLoggerAppCheckMessageDebugProviderIncompleteFIROptions,
|
||||
@"Cannot instantiate `GACAppCheckDebugProvider` for app: %@. The following "
|
||||
@"`FirebaseOptions` fields are missing: %@",
|
||||
app.name, [missingOptionsFields componentsJoinedByString:@", "]);
|
||||
@@ -119,8 +119,8 @@ static NSString *const kDebugTokenUserDefaultsKey = @"FIRAAppCheckDebugToken";
|
||||
return nil;
|
||||
})
|
||||
.catch(^void(NSError *error) {
|
||||
GACAppCheckDebugLog(kFIRLoggerAppCheckMessageDebugProviderFailedExchange,
|
||||
@"Failed to exchange debug token to app check token: %@", error);
|
||||
GACLogDebug(kFIRLoggerAppCheckMessageDebugProviderFailedExchange,
|
||||
@"Failed to exchange debug token to app check token: %@", error);
|
||||
handler(nil, error);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user