Skip to content

Commit 9824065

Browse files
Set Realm breadcrumbs limit to 200 instead of 1_000
1 parent 83b2199 commit 9824065

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/src/main/java/com/infomaniak/mail/MainApplication.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,11 @@ open class MainApplication : Application(), ImageLoaderFactory, DefaultLifecycle
171171
private fun configureSentry() {
172172
SentryAndroid.init(this) { options: SentryAndroidOptions ->
173173

174-
options.maxBreadcrumbs = 1_000
174+
/**
175+
* The default value is 100.
176+
* But Realm breadcrumbs are spamming a lot, so we increase this limit for now, to see if it's enough or not.
177+
*/
178+
options.maxBreadcrumbs = 200
175179

176180
// Register the callback as an option
177181
options.beforeSend = SentryOptions.BeforeSendCallback { event: SentryEvent, _: Any? ->

app/src/main/java/com/infomaniak/mail/utils/SentryRealmLogger.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class SentryRealmLogger : RealmLogger {
3434
private val messagesMap = mutableMapOf<Long, MutableList<String>>()
3535

3636
override val level = LogLevel.DEBUG
37-
3837
override val tag = "Realm"
3938

4039
override fun log(level: LogLevel, throwable: Throwable?, message: String?, vararg args: Any?) {

0 commit comments

Comments
 (0)