|
11 | 11 | #import <React/RCTCallInvoker.h> |
12 | 12 | #import <UIKit/UIKit.h> |
13 | 13 | #import <UserNotifications/UserNotifications.h> |
| 14 | +#import <os/log.h> |
14 | 15 | #import <cstring> |
15 | 16 | #include <atomic> |
16 | 17 | #import <jsi/jsi.h> |
@@ -395,11 +396,11 @@ - (NSDictionary *)getConstants { |
395 | 396 | } |
396 | 397 | if (consecutiveErrors <= 5 || consecutiveErrors % 50 == 0) { |
397 | 398 | __typeof__(self) strongSelf = weakSelf; |
398 | | - NSLog(@"ReadArr loop[%llu] error streak=%llu total=%llu domain=%s code=%ld desc=%s self=%p bridge=%p jsRuntime=%p currentRuntime=%p", |
399 | | - (unsigned long long)readLoopGen, (unsigned long long)consecutiveErrors, |
400 | | - (unsigned long long)totalErrors, KBStringOrNil(error.domain), (long)error.code, |
401 | | - KBStringOrNil(error.localizedDescription), strongSelf, strongSelf.bridge, |
402 | | - strongSelf ? [strongSelf javaScriptRuntimePointer] : nil, currentRuntime); |
| 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 | + (unsigned long long)readLoopGen, (unsigned long long)consecutiveErrors, |
| 401 | + (unsigned long long)totalErrors, KBStringOrNil(error.domain), (long)error.code, |
| 402 | + KBStringOrNil(error.localizedDescription), strongSelf, strongSelf.bridge, |
| 403 | + strongSelf ? [strongSelf javaScriptRuntimePointer] : nil, currentRuntime); |
403 | 404 | } |
404 | 405 | // Back off on error to avoid spinning at ~35K/sec and starving the main thread CPU |
405 | 406 | // during foreground re-entry (seen during hang investigation: 419K errors in 12s). |
|
0 commit comments