@@ -78,6 +78,7 @@ - (void)dealloc {
7878static BOOL kbPasteImageEnabled = NO ;
7979static NSString *kbStoredDeviceToken = nil ;
8080static NSDictionary *kbInitialNotification = nil ;
81+ static NSString *kbInitResult = nil ;
8182
8283@interface RCTBridge (JSIRuntime)
8384- (void *)runtime ;
@@ -396,10 +397,11 @@ - (NSDictionary *)getConstants {
396397 }
397398 if (consecutiveErrors <= 5 || consecutiveErrors % 50 == 0 ) {
398399 __typeof__ (self) strongSelf = weakSelf;
399- os_log (OS_LOG_DEFAULT, " ReadArr loop[%llu] error streak=%llu total=%llu domain=%{public}s code=%ld desc=%{public}s self=%p bridge=%p jsRuntime=%p currentRuntime=%p" ,
400+ os_log (OS_LOG_DEFAULT, " ReadArr loop[%llu] error streak=%llu total=%llu domain=%{public}s code=%ld desc=%{public}s initResult=%{public}s self=%p bridge=%p jsRuntime=%p currentRuntime=%p" ,
400401 (unsigned long long )readLoopGen, (unsigned long long )consecutiveErrors,
401402 (unsigned long long )totalErrors, KBStringOrNil (error.domain ), (long )error.code ,
402- KBStringOrNil (error.localizedDescription ), strongSelf, strongSelf.bridge ,
403+ KBStringOrNil (error.localizedDescription ), KBStringOrNil (kbInitResult),
404+ strongSelf, strongSelf.bridge ,
403405 strongSelf ? [strongSelf javaScriptRuntimePointer ] : nil , currentRuntime);
404406 }
405407 // Back off on error to avoid spinning at ~35K/sec and starving the main thread CPU
@@ -752,3 +754,7 @@ void KbEmitPushNotification(NSDictionary *notification) {
752754 kbInitialNotification = nil ;
753755 return notification;
754756}
757+
758+ void KbSetInitResult (NSString *result) {
759+ kbInitResult = result;
760+ }
0 commit comments