mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-24 15:26:49 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user