From 4ab3966f756c133e9dc61303dc5af6067dcdce16 Mon Sep 17 00:00:00 2001 From: vincent Bourgmayer Date: Thu, 23 Feb 2023 11:26:27 +0100 Subject: [PATCH] disable sentry --- .../main/java/foundation/e/drive/EdriveApplication.java | 2 +- .../main/java/foundation/e/drive/utils/ReleaseTree.java | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/foundation/e/drive/EdriveApplication.java b/app/src/main/java/foundation/e/drive/EdriveApplication.java index 0ba43320..6eaeed4b 100644 --- a/app/src/main/java/foundation/e/drive/EdriveApplication.java +++ b/app/src/main/java/foundation/e/drive/EdriveApplication.java @@ -44,7 +44,7 @@ public class EdriveApplication extends Application { if (BuildConfig.DEBUG) { Timber.plant(new DebugTree()); } else { - Telemetry.INSTANCE.init(BuildConfig.SENTRY_DSN, this); + //Telemetry.INSTANCE.init(BuildConfig.SENTRY_DSN, this); Timber.plant(new ReleaseTree()); } Timber.tag("EdriveApplication"); diff --git a/app/src/main/java/foundation/e/drive/utils/ReleaseTree.java b/app/src/main/java/foundation/e/drive/utils/ReleaseTree.java index dbc19e12..7e1f1565 100644 --- a/app/src/main/java/foundation/e/drive/utils/ReleaseTree.java +++ b/app/src/main/java/foundation/e/drive/utils/ReleaseTree.java @@ -12,6 +12,7 @@ import android.util.Log; import androidx.annotation.NonNull; import androidx.annotation.Nullable; +import foundation.e.drive.EdriveApplication; import foundation.e.lib.telemetry.Telemetry; import timber.log.Timber; @@ -31,9 +32,11 @@ public class ReleaseTree extends Timber.DebugTree{ return; } - if (priority >= Log.WARN) { + + /*if (priority >= Log.WARN) { + Telemetry.INSTANCE.reportMessage(tag + " " + message); - } + }*/ super.log(priority, tag, message, throwable); } -- GitLab