Make XLog display debug info in a debug build
This commit is contained in:
parent
e48f274072
commit
bc896cf605
@ -158,10 +158,10 @@ open class App : Application(), LifecycleObserver {
|
|||||||
private fun setupExhLogging() {
|
private fun setupExhLogging() {
|
||||||
EHLogLevel.init(this)
|
EHLogLevel.init(this)
|
||||||
|
|
||||||
val logLevel = if (EHLogLevel.shouldLog(EHLogLevel.EXTRA)) {
|
val logLevel = when {
|
||||||
LogLevel.ALL
|
EHLogLevel.shouldLog(EHLogLevel.EXTRA) -> LogLevel.ALL
|
||||||
} else {
|
BuildConfig.DEBUG -> LogLevel.DEBUG
|
||||||
LogLevel.WARN
|
else -> LogLevel.WARN
|
||||||
}
|
}
|
||||||
|
|
||||||
val logConfig = LogConfiguration.Builder()
|
val logConfig = LogConfiguration.Builder()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user