mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add debug logs to track down T62192299 exception source
Summary: Add debug logs to track down T62192299 exception source Changelog: [Internal] Reviewed By: RSNara Differential Revision: D20878063 fbshipit-source-id: 94acd56c45d4b529a695d1b4d2bfd10d8f725e63
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f21b4eb571
commit
ff38f47b60
@@ -1036,6 +1036,12 @@ public class ReactInstanceManager {
|
||||
try {
|
||||
setupReactContext(reactApplicationContext);
|
||||
} catch (Exception e) {
|
||||
// TODO T62192299: remove this after investigation
|
||||
FLog.e(
|
||||
ReactConstants.TAG,
|
||||
"ReactInstanceManager caught exception in setupReactContext",
|
||||
e);
|
||||
|
||||
mDevSupportManager.handleException(e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -715,6 +715,9 @@ public class CatalystInstanceImpl implements CatalystInstance {
|
||||
}
|
||||
|
||||
private void onNativeException(Exception e) {
|
||||
// TODO T62192299: remove this after investigation
|
||||
FLog.e(ReactConstants.TAG, "CatalystInstanceImpl caught native exception", e);
|
||||
|
||||
mNativeModuleCallExceptionHandler.handleException(e);
|
||||
mReactQueueConfiguration
|
||||
.getUIQueueThread()
|
||||
|
||||
+4
@@ -9,6 +9,7 @@ package com.facebook.react.devsupport;
|
||||
|
||||
import android.view.View;
|
||||
import androidx.annotation.Nullable;
|
||||
import com.facebook.common.logging.FLog;
|
||||
import com.facebook.react.bridge.DefaultNativeModuleCallExceptionHandler;
|
||||
import com.facebook.react.bridge.ReactContext;
|
||||
import com.facebook.react.bridge.ReadableArray;
|
||||
@@ -157,6 +158,9 @@ public class DisabledDevSupportManager implements DevSupportManager {
|
||||
|
||||
@Override
|
||||
public void handleException(Exception e) {
|
||||
// TODO T62192299: remove this after investigation
|
||||
FLog.e("DisabledDevSupportManager", "Caught exception", e);
|
||||
|
||||
mDefaultNativeModuleCallExceptionHandler.handleException(e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user