Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/main/java/com/statsig/androidsdk/ErrorBoundary.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.statsig.androidsdk

import android.util.Log
import com.google.gson.Gson
import kotlinx.coroutines.CoroutineExceptionHandler
import java.io.DataOutputStream
Expand All @@ -22,8 +23,6 @@ internal class ErrorBoundary() {
}

private fun handleException(exception: Throwable) {
println("[Statsig]: An unexpected exception occurred.")
println(exception)
this.logException(exception)
}

Expand Down Expand Up @@ -61,6 +60,8 @@ internal class ErrorBoundary() {
}

internal fun logException(exception: Throwable) {
Log.d("Statsig", "An unexpected exception occurred", exception)

try {
if (apiKey == null) {
return
Expand Down