Logs exceptions coming from sending an email

master
Laurent 1 year ago
parent 23872f625a
commit 8a29187553
  1. 2
      app/src/main/java/net/pokeranalytics/android/api/BackupApi.kt

@ -4,6 +4,7 @@ import android.content.Context
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async
import net.pokeranalytics.android.util.CrashLogging
import net.pokeranalytics.android.util.extensions.isNetworkAvailable
import okhttp3.MediaType
import okhttp3.MultipartBody
@ -60,6 +61,7 @@ object BackupApi {
true
} catch (e: Exception) {
Timber.d("!!! backup failed: ${e.message}")
CrashLogging.logException(e)
false
}
}

Loading…
Cancel
Save