mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Ignore debug mode when choosing logger level
This commit is contained in:
		@@ -116,7 +116,7 @@ open class App : Application() {
 | 
			
		||||
    private fun setupExhLogging() {
 | 
			
		||||
        EHLogLevel.init(this)
 | 
			
		||||
 | 
			
		||||
        val logLevel = if(BuildConfig.DEBUG || EHLogLevel.shouldLog(EHLogLevel.EXTRA)) {
 | 
			
		||||
        val logLevel = if(EHLogLevel.shouldLog(EHLogLevel.EXTRA)) {
 | 
			
		||||
            LogLevel.ALL
 | 
			
		||||
        } else {
 | 
			
		||||
            LogLevel.WARN
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,7 @@ enum class EHLogLevel(val description: String) {
 | 
			
		||||
    companion object {
 | 
			
		||||
        private var curLogLevel: Int? = null
 | 
			
		||||
 | 
			
		||||
        val currentLogLevel get() = EHLogLevel.values()[curLogLevel!!]
 | 
			
		||||
        val currentLogLevel get() = values()[curLogLevel!!]
 | 
			
		||||
 | 
			
		||||
        fun init(context: Context) {
 | 
			
		||||
            curLogLevel = PreferencesHelper(context)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user