Increase reliability of locally logging crashes.

Exception logging tends to be race-y, so now we block and wait
for all logs to be written before continuing with the crash.
This commit is contained in:
Greyson Parrelli
2019-04-10 12:53:55 -04:00
parent 01a9931d92
commit 11a2ed0743
5 changed files with 32 additions and 6 deletions

View File

@@ -185,7 +185,7 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc
private void initializeCrashHandling() {
final Thread.UncaughtExceptionHandler originalHandler = Thread.getDefaultUncaughtExceptionHandler();
Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionLogger(originalHandler, persistentLogger));
Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionLogger(originalHandler));
}
private void initializeJobManager() {