Commit 6fda5a62 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Don't try to log a sentry error if it is disabled (doesn' work anyways)

parent 96a47795
......@@ -41,6 +41,7 @@ import kotlin.concurrent.withLock
private val publishedExceptions = mutableMapOf<Throwable, Set<StackTraceElement>>()
private fun Context.logErrorSentry(e: Throwable, extras: Map<String, String>? = null) {
if(getPreferences().crashreportingType == Crashreporting.OFF) return
if (publishedExceptions.any {
it.value.all { elem ->
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment