Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
PublicAndroidApps
Nebulo
Commits
6fda5a62
Commit
6fda5a62
authored
Nov 21, 2019
by
Daniel Wolf
Browse files
Don't try to log a sentry error if it is disabled (doesn' work anyways)
parent
96a47795
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/smokescreen/Logger.kt
View file @
6fda5a62
...
...
@@ -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
->
e
.
stackTrace
.
contains
(
elem
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment