mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 861395 - Part 1: Log the cause
exception that we report to Socorro. r=kats
This commit is contained in:
parent
e4396bdb71
commit
5a418134e7
@ -174,9 +174,6 @@ public class GeckoAppShell
|
||||
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
||||
@Override
|
||||
public void uncaughtException(Thread thread, Throwable e) {
|
||||
Log.e(LOGTAG, ">>> REPORTING UNCAUGHT EXCEPTION FROM THREAD "
|
||||
+ thread.getId() + " (\"" + thread.getName() + "\")", e);
|
||||
|
||||
// If the uncaught exception was rethrown, walk the exception `cause` chain to find
|
||||
// the original exception so Socorro can correctly collate related crash reports.
|
||||
Throwable cause;
|
||||
@ -184,6 +181,9 @@ public class GeckoAppShell
|
||||
e = cause;
|
||||
}
|
||||
|
||||
Log.e(LOGTAG, ">>> REPORTING UNCAUGHT EXCEPTION FROM THREAD "
|
||||
+ thread.getId() + " (\"" + thread.getName() + "\")", e);
|
||||
|
||||
if (e instanceof java.lang.OutOfMemoryError) {
|
||||
SharedPreferences prefs =
|
||||
GeckoApp.mAppContext.getSharedPreferences(GeckoApp.PREFS_NAME, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user