Skip to content

Commit

Permalink
Disable sentry debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
XanderZhu committed Dec 20, 2023
1 parent 5d173a7 commit 6cc38db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.hyperskill.app.android.sentry.domain.model.manager

import io.sentry.Sentry
import io.sentry.SentryLevel
import io.sentry.SpanStatus
import io.sentry.android.core.SentryAndroid
import io.sentry.android.fragment.FragmentLifecycleIntegration
Expand Down Expand Up @@ -37,11 +38,11 @@ class SentryManagerImpl(
enableAutoFragmentLifecycleTracing = true
)
)
options.setDiagnosticLevel(minLogLevel.toSentryLevel())

if (BuildConfig.DEBUG) {
options.setDebug(true)
options.tracesSampleRate = 1.0
options.setDiagnosticLevel(SentryLevel.INFO)
} else {
options.setDebug(false)
options.tracesSampleRate = 0.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fun <State, Message, Action> StateReducer<State, Message, Action>.wrapWithLogger
buildVariant: BuildVariant,
logger: Logger,
tag: String,
severity: Severity = Severity.Debug
severity: Severity = Severity.Info
): StateReducer<State, Message, Action> =
if (buildVariant == BuildVariant.RELEASE) {
this
Expand Down

0 comments on commit 6cc38db

Please sign in to comment.