File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
src/main/kotlin/com/statsig/sdk Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,6 @@ private class StatsigServerImpl() :
307
307
308
308
override fun setup (serverSecret : String , options : StatsigOptions ) {
309
309
try {
310
- Thread .setDefaultUncaughtExceptionHandler(MainThreadExceptionHandler (this , Thread .currentThread()))
311
310
setupStartTime = System .currentTimeMillis()
312
311
errorBoundary = ErrorBoundary (serverSecret, options, statsigMetadata)
313
312
coroutineExceptionHandler = CoroutineExceptionHandler { _, ex ->
@@ -1430,17 +1429,4 @@ private class StatsigServerImpl() :
1430
1429
diagnostics?.logDiagnostics(ContextType .INITIALIZE )
1431
1430
diagnostics.diagnosticsContext = ContextType .CONFIG_SYNC
1432
1431
}
1433
-
1434
- class MainThreadExceptionHandler (val server : StatsigServer , val currentThread : Thread ) :
1435
- Thread .UncaughtExceptionHandler {
1436
- override fun uncaughtException (t : Thread , e : Throwable ) {
1437
- if (! t.name.equals(currentThread.name)) {
1438
- throw e
1439
- }
1440
- server.getCustomLogger()
1441
- .info(" [StatsigServer] Shutting down Statsig because of unhandled exception from your server" )
1442
- server.shutdown()
1443
- throw e
1444
- }
1445
- }
1446
1432
}
You can’t perform that action at this time.
0 commit comments