Skip to content

Commit

Permalink
Set min log severity to info in non-debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-mullvad committed Jun 26, 2024
1 parent cc1cca1 commit 64e482a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))
}
Expand Down

0 comments on commit 64e482a

Please sign in to comment.