From e250ae32baf97700e854e0583c29630323c87a48 Mon Sep 17 00:00:00 2001 From: Albin Date: Tue, 25 Jun 2024 17:03:27 +0200 Subject: [PATCH] Set min log severity to info in non-debug builds --- .../main/kotlin/net/mullvad/mullvadvpn/MullvadApplication.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/MullvadApplication.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/MullvadApplication.kt index e94f2edb096c..10d44839ce2d 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/MullvadApplication.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/MullvadApplication.kt @@ -2,6 +2,7 @@ package net.mullvad.mullvadvpn import android.app.Application import co.touchlab.kermit.Logger +import co.touchlab.kermit.Severity import net.mullvad.mullvadvpn.di.appModule import org.koin.android.ext.koin.androidContext import org.koin.core.context.loadKoinModules @@ -17,6 +18,9 @@ class MullvadApplication : Application() { override fun onCreate() { super.onCreate() Logger.setTag(LOG_TAG) + if (!BuildConfig.DEBUG) { + Logger.setMinSeverity(Severity.Info) + } startKoin { androidContext(this@MullvadApplication) } loadKoinModules(listOf(appModule)) }