From 9fad93ea37bea3376e315073c7788607dae38403 Mon Sep 17 00:00:00 2001 From: hasibprince Date: Thu, 19 Jan 2023 15:07:56 +0600 Subject: [PATCH] Timber logging is configured for release --- app/src/main/java/foundation/e/apps/AppLoungeApplication.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/foundation/e/apps/AppLoungeApplication.kt b/app/src/main/java/foundation/e/apps/AppLoungeApplication.kt index a74f85c77..1ed3c1025 100644 --- a/app/src/main/java/foundation/e/apps/AppLoungeApplication.kt +++ b/app/src/main/java/foundation/e/apps/AppLoungeApplication.kt @@ -19,6 +19,7 @@ package foundation.e.apps import android.app.Application +import android.util.Log import androidx.hilt.work.HiltWorkerFactory import androidx.work.Configuration import dagger.hilt.android.HiltAndroidApp @@ -72,6 +73,11 @@ class AppLoungeApplication : Application(), Configuration.Provider { plant(object : Timber.Tree() { override fun log(priority: Int, tag: String?, message: String, t: Throwable?) { Telemetry.reportMessage("$tag: $message") + if (priority == Log.DEBUG || priority == Log.VERBOSE) { + return + } + + Log.println(priority, tag, message) } }) } -- GitLab