Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit df7a7215 authored by Rafael Tonholo's avatar Rafael Tonholo
Browse files

chore(logging): change log level to Verbose when build is debug

parent 560910c7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4,6 +4,10 @@ plugins {

android {
    namespace = "net.thunderbird.app.common"

    buildFeatures {
        buildConfig = true
    }
}

dependencies {
+2 −1
Original line number Diff line number Diff line
package net.thunderbird.app.common.core

import net.thunderbird.app.common.BuildConfig
import net.thunderbird.core.logging.DefaultLogger
import net.thunderbird.core.logging.LogLevel
import net.thunderbird.core.logging.LogSink
@@ -11,7 +12,7 @@ import org.koin.dsl.module

val appCommonCoreModule: Module = module {
    single<LogLevel> {
        LogLevel.INFO
        if (BuildConfig.DEBUG) LogLevel.VERBOSE else LogLevel.INFO
    }

    single<List<LogSink>> {