接入 Sentry
This commit is contained in:
@ -26,6 +26,8 @@ import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
|
||||
import io.sentry.core.Sentry;
|
||||
|
||||
public class AppUncaughtHandler implements UncaughtExceptionHandler {
|
||||
|
||||
private Context mContext;
|
||||
@ -45,7 +47,9 @@ public class AppUncaughtHandler implements UncaughtExceptionHandler {
|
||||
Looper.loop();
|
||||
}
|
||||
});
|
||||
|
||||
saveLocalLog(mContext, ex);
|
||||
Sentry.captureException(ex);
|
||||
restart(mContext);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user